tcpdump mailing list archives
pcap_loop() not returning after pcap_breakloop() until another packet arrives
From: "Richard Hansen" <pcap-ri () scientician org>
Date: Sun, 25 Jun 2006 01:50:44 -0400
Hi all, I have one thread that sits in pcap_loop() and another thread that calls pcap_breakloop() when it is time to shut down. My code works well on Windows (WinPcap 3.1). On Linux (libpcap 0.9.4, kernel 2.6.16) the pcap_loop() doesn't return after calling pcap_breakloop() until another packet arrives. Is this expected or proper behavior? How can I tell Linux to return from that readfrom() call that it's blocking on? Thank you! Richard - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- pcap_loop() not returning after pcap_breakloop() until another packet arrives Richard Hansen (Jun 24)
- Re: pcap_loop() not returning after pcap_breakloop() until another packet arrives Guy Harris (Jun 26)
- Re: pcap_loop() not returning after pcap_breakloop() Fabian Schneider (Jun 27)
- Re: pcap_loop() not returning after pcap_breakloop() Guy Harris (Jun 27)
- Re: pcap_loop() not returning after pcap_breakloop() Richard Hansen (Jun 27)
- Re: pcap_loop() not returning after David Rosal (Jun 27)
- Re: pcap_loop() not returning after pcap_breakloop() Fabian Schneider (Jun 27)
- Re: pcap_loop() not returning after pcap_breakloop() until another packet arrives Guy Harris (Jun 26)