On Wed, 2002-01-09 at 01:00, Guy Harris wrote: [...]
> Note that, due to deficiencies in BPF on many BSDs, the "select()" or > "poll()" call would need to have a timeout and, if the timeout expires, > you should do a "pcap_dispatch()" on the "pcap_t". (If you have more > than one "pcap_t" on which you're selecting, when the "select()" returns > you should do a "pcap_dispatch()" on *all* "pcap_t"s.) > > This works as long as you've done a "pcap_setnonblock()" on all of the > "pcap_t"s to set non-blocking mode (so that the "pcap_dispatch()" > doesn't block if there aren't any packets to read). Are you talking about the bug where polling() a BPF devices won't return until the device "read buffer" is full (only happening when linking to libc_r it seem) ? -- Yoann Vandoorselaere http://www.prelude-ids.org
msg00880/pgp00000.pgp
Description: PGP signature
