]> The Tcpdump Group git mirrors - libpcap/commit
Don't treat EACCES as a fatal error when enumerating DPDK devices.
authorGuy Harris <[email protected]>
Sun, 10 Feb 2019 20:17:59 +0000 (12:17 -0800)
committerGuy Harris <[email protected]>
Sun, 10 Feb 2019 20:17:59 +0000 (12:17 -0800)
commitd08338fdff4538ea18fa3b94327a909f9ed1de46
tree4bebc6df793b9ea0e228b70cd3cebad1a5dc0f92
parentabeb357041f40ccf2dd715cab5e2860ceb851eb7
Don't treat EACCES as a fatal error when enumerating DPDK devices.

Unfortunately, pcap_findalldevs() has no mechanism to return warnings,
and a permissions error in a particular module's find-devices routine
ultimately be a warning - only if *all* modules fail with "permission
denied" should we treat it as a fatal error.

So, if we're just trying to enumerate devices, treat EACCES as meaning
DPDK is unavailable, not as a fatal error.
pcap-dpdk.c