Hello Tobias, I have read the read_pcap function. I am not expert in C just a beginner. I have understand the basic flow from the read_pcap function but still not fully. I am using the real time kernel Xenomai 3.0.1 and it uses the real time Ethernet driver and hence the name of the Ethernet interface is 'rteth'. If you read this link https://xenomai.org/2014/08/porting-a-linux-application-to-xenomai-dual-kernel/ which explains that how I can port the Linux application to the xenomai. As I am not expert therefore I am asking you that can I port the netsniff-ng tool to xenomai. I can ask the xenomai expert but you have build this tool and you can easily understand therefore I asked you. Or can I send the packet after 10 µsecs in non-real time Linux. Can you provide me the separate code of reading the pcap file so I can run on xenomai. Sorry for being asking so many questions.
Thanks & Br Ali -----Original Message----- From: Tobias Klauser [mailto:tklau...@distanz.ch] Sent: January-27-16 5:02 PM To: Umair Ali Cc: netsniff-ng@googlegroups.com Subject: Re: [netsniff-ng] Replay pcap file on Xenomai kernel in real time On 2016-01-27 at 15:15:01 +0100, Umair Ali <ali.um...@tut.fi> wrote: > Hi Tobias, > > Thanks for the quick reply. I have read pcap_mm.c file but cannot understand > the flow of the code. Can you explain me the flow that once the pcap file is > open using mmap then how it is further processed to extract packet by packet > and replay. Is it possible with netsniff-ng to send packet every 5micro secs > or less. The mmap pcap functions (like the scatter-gather and the standard file i/o functions) are wired up in struct pcap_file_ops *pcap_ops and then used by the respective functions in netsniff-ng.cx according to the pcap access method is set in ctx->pcap (PCAP_OPS_MM in case of mmap). read_pcap in netsniff-ng.c is probably most interesting to you. HTH Tobias -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.