tcpdump mailing list archives

Re: Compatibility Libpcap/Winpcap and timout of


From: Aaron Turner <synfinatic () gmail com>
Date: Tue, 27 Jan 2009 17:14:37 -0800

On Tue, Jan 27, 2009 at 4:26 PM, Guy Harris <guy () alum mit edu> wrote:

If you want a timeout, so you don't wait forever for a packet to arrived,
I'd suggest using select() or poll() on UN*X systems (other than *BSD and
Mac OS X, where select() and poll() might not work correctly on BPF devices
- and, in the case of Mac OS X, where poll() doesn't work *at all* on
"character" devices such as BPF devices or ttys).

Sorry to hijack the thread... but this begs the question:

What is the solution on *BSD/OS X where you want a timeout or need to
listen on multiple pcap_t handles?


-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little
temporary Safety,
deserve neither Liberty nor Safety.
    -- Benjamin Franklin
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: