tcpdump mailing list archives

Re: libpcap error codes?


From: Denis Ovsienko via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Wed, 7 Oct 2020 23:16:54 +0100

--- Begin Message --- From: Denis Ovsienko <denis () ovsienko info>
Date: Wed, 7 Oct 2020 23:16:54 +0100
On Wed, 7 Oct 2020 14:37:41 -0700
Guy Harris via tcpdump-workers <tcpdump-workers () lists tcpdump org>
wrote:

[...]

A new API could be added that returns a PCAP_ERROR_ value rather than
-1 on error (so as not to break source or binary compatibility with
code using the existing APIs).

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.

-- 
    Denis Ovsienko

--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: