tcpdump mailing list archives
Re: Checking for specific return errors in libpcap I/O functions
From: Guy Harris <guy () alum mit edu>
Date: Fri, 30 Dec 2011 12:55:00 -0800
On Dec 30, 2011, at 6:21 AM, Fernando Gont wrote:
After taking a look at the libpcap code, it seems that a straightforward way to incorporate the functionality I was mentioning would be to add to pcap_t a "status" member, and add right before every sentence that writes to handle->errbuf a sentence that writes the corresponding code to handle-status. Then a function "pcap_geterrcode()" would simply return handle->status.
That would make sense. If you want to work on an implementation, send us the patches (or attach them to the tracker item you filed on this). - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Checking for specific return errors in libpcap I/O functions Fernando Gont (Dec 29)
- Re: Checking for specific return errors in libpcap I/O functions Guy Harris (Dec 29)
- Re: Checking for specific return errors in libpcap Fernando Gont (Dec 29)
- Re: Checking for specific return errors in libpcap Fernando Gont (Dec 30)
- Re: Checking for specific return errors in libpcap I/O functions Guy Harris (Dec 30)
- Re: Checking for specific return errors in libpcap I/O functions Guy Harris (Dec 29)
