tcpdump mailing list archives
Re: Adding capture engine questions
From: Saikiran Madugula <hummerbliss () gmail com>
Date: Fri, 24 Aug 2007 14:45:23 -0400
Audet, Jean-Michel wrote:
Hi,I am currently adding a capture engine to sniff i2c traffic.I am currently adding this code into Linux using the pcap_linuxmechanism (like Bluetooth and USB).My question is (and I am not currently sure if it's Wireshark or libpcap) why do I get calls to my function xx_open_live each seconds(approx) during my capture.
I am a newbie too but I have following suggestions, although it always tough to suggest anything with out looking at source code. Did you make the following changes to handle your interface correctly ?
pcap_lookup net, pcap_open_live and xxx_platform_finddevs. Have you verified with tcpdump etc, do you get the same behaviour ?
I get calls to the function xx_read to get the packets but I was expecting a call to the xx_open_live function only once when the capture starts and a call to the function xx_close at the end. My monitoring external hardware cannot be start and stop without loosing packets.Thanks for your help!JM- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Adding capture engine questions Audet, Jean-Michel (Aug 24)
- Re: Adding capture engine questions Saikiran Madugula (Aug 24)
- Re: Adding capture engine questions Guy Harris (Aug 24)
- Re: Adding capture engine questions Saikiran Madugula (Aug 24)