[PATCH] net/pcap: use pcap_next_ex to track errors
Stephen Hemminger
stephen at networkplumber.org
Thu Oct 10 04:21:21 CEST 2024
On Thu, 10 Oct 2024 03:14:48 +0100
Ferruh Yigit <ferruh.yigit at amd.com> wrote:
> On 9/5/2024 5:10 PM, Stephen Hemminger wrote:
> > Use pcap_next_ex rather than just pcap_next because pcap_next
> > always blocks if there is no packets to receive.
> >
>
> Hi Stephen,
>
> Do you know if using 'pcap_next_ex()' (instead of 'pcap_next()') has any
> dependency impact?
> Like can we rely that all libraries that support 'pcap_next()', also
> supports 'pcap_next_ex()'?
The code depends on libpcap, and that API has been in pcap since the
early days. See it in a version from 2003!
More information about the dev
mailing list