tcpdump mailing list archives
Re: libpcap error codes?
From: Guy Harris via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Wed, 7 Oct 2020 16:09:02 -0700
--- Begin Message --- From: Guy Harris <gharris () sonic net>
Date: Wed, 7 Oct 2020 16:09:02 -0700
On Oct 7, 2020, at 3:16 PM, Denis Ovsienko via tcpdump-workers <tcpdump-workers () lists tcpdump org> wrote:Do you mean to introduce a function like pcap_error(), which the developers would be able to interrogate if they need in use cases like this? Then existing functions could be slowly updated as needed to store the fault details somewhere for that function.I was thinking of a new API for injecting packets, which would directly return a PCAP_ERROR_ value. A pcap_last_error() routine would also handle that case, but if a new routine would return a success vs. failure value, it might as well return an error code, so pcap_last_error() would be useful only for existing routines.
--- End Message ---
_______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- libpcap error codes? Fernando Gont via tcpdump-workers (Oct 07)
- Re: libpcap error codes? Guy Harris via tcpdump-workers (Oct 07)
- Re: libpcap error codes? Denis Ovsienko via tcpdump-workers (Oct 07)
- Re: libpcap error codes? Guy Harris via tcpdump-workers (Oct 07)
- Re: libpcap error codes? Denis Ovsienko via tcpdump-workers (Oct 07)
- Re: libpcap error codes? Guy Harris via tcpdump-workers (Oct 07)