tcpdump mailing list archives
Re: pcap_open_live() timeout on Linux
From: "David Chang" <dchang () fsautomation com>
Date: Thu, 31 Jul 2003 15:07:07 -0700
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
Current thread:
- Re: pcap_open_live() timeout on Linux David Chang (Aug 18)