Hello there,

I am working on the project of replaying the pcap files in the real time over 
the network. For this purpose I am using the real time Linux kernel 'Xenomai v 
3.0.1'. My idea is to write a code in C which will read the pcap file packet by 
packet and then send the packet as raw Ethernet packet over the real time 
interface. When the pcap libraries are used on the xenomai then the process of 
reading pcap files does not behave in real time any more. Moreover the xenomai 
uses the mmap for reading the files in real time. I have tried to use the mmap 
technique to read pcap file but it is not perfect and works for small files. I 
have read the netsniff.ng tool uses the same mmap technique to read the pcap 
file for replaying the pcap file. My question is that how mmap is used in 
netsniff-ng tool to read the pcap file packet by packet. Can you give me the C 
code as an example to read the pcap file using mmap packet by packet. I shall 
be highly thankful.

Thanks & regards
Ali
Tampere University of Technology.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to