tcpdump mailing list archives

pcap: forcing pcap_loop() failures


From: Alex Dupuy <alex.dupuy () mac com>
Date: Thu, 17 Aug 2006 13:09:08 -0400

Recent versions of libpcap have a pcap_breakloop() function that does what you are specifically asking for (called inside a packet loop handler, it causes an immediate return from the loop with a -2 error code), although I suspect that using the "any" interface, or pcap_next_ex(), might be better solutions to your overall problem.

@alex
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: