|
Hi,
I've been reading several old postings about how Linux (among
other OSs) implementation of pcap_open_live() doesn't respect the timeout
value. That is, pcap_dispatch (hence pcap_read) blocks while waiting for a
packet to arrive. The old postings go on to mention something about the
BIOCIMMEDIATE ioctl call to eliminate the blocking, but then later goes on to
say doing this causes pcap to not batch the packets and send them one by
one.
My question is: what's the proper way to get Linux to not
block pcap_read? We have some Solaris machines here and the code runs fine
(it doesn't block).
DC
|
