On Apr 15, 2005, at 1:10 PM, ury segal wrote:
I have pcap_dispatch sometimes returning value <0 and pcap_geterr printing "Resource temporarily unavailable".
The pcap handler is non blocking (pcap_setnonblock was called with 1), the fd was found with pcap_get_selectable_fd, it was select()ed on and returned turned on. Yet pcap_dispatch returns this error.
What was the *full* error string?
If the "recvfrom()" in the packet-reading code in pcap-linux.c returns -1 and sets errno to EAGAIN, "pcap_dispatch()" should return 0, not a negative value.
- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.