Hi,
 
I am specifying a read timeout of 5000 milliseconds in
the pcap_open_live call. However when I loop in
pcap_dispatch (with a count of  0), it returns after
every packet. My understanding on this was (based on
the man page) that pcap_dispatch would keep calling
the callback packet handler on every packet it gets,
but will return only if either an error occurs, EOF is
reached  or read times out. In the absence of the
first two cases, shouldnt pcap_dispatch be returning
only once after atleast 5 seconds have passed since
the last received packet ?

This is on Linux kernel 2.2.18 using libpcap 0.4

Thanks,
Joe

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to