Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Oct 7, 2020, at 3:16 PM, Denis Ovsienko via tcpdump-workers 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 neede

Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Wed, 7 Oct 2020 14:37:41 -0700 Guy Harris via tcpdump-workers 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 intro

Re: [tcpdump-workers] libpcap error codes?

2020-10-07 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Oct 7, 2020, at 1:30 PM, Fernando Gont via tcpdump-workers wrote: > WHile using pcap_inject() in Linux, it is failing with "pcap_inject(): send: > Resource temporarily unavailable". In principle, one would expect that for > temporary problems (such as this one), one ma

[tcpdump-workers] libpcap error codes?

2020-10-07 Thread Fernando Gont via tcpdump-workers
--- Begin Message --- Hi, WHile using pcap_inject() in Linux, it is failing with "pcap_inject(): send: Resource temporarily unavailable". In principle, one would expect that for temporary problems (such as this one), one may one to wait a bit and retry. So it would make sense to somehow be ab