]> The Tcpdump Group git mirrors - libpcap/commit
More error cleanups.
authorGuy Harris <[email protected]>
Thu, 7 Feb 2019 19:01:27 +0000 (11:01 -0800)
committerGuy Harris <[email protected]>
Thu, 7 Feb 2019 19:01:27 +0000 (11:01 -0800)
commit8df8dadd730c74ec8cfc3f054a9558cb6c9357a3
tree61e0a8f149db1ab0fdb1a5c6853f2a2638bcd87e
parent10c0fa22c4db36d64ad92374486b9c304ca7238d
More error cleanups.

Handle the error codes from rte_eal_init().  Treat EACCES as a
permissions error when activating devices.  Treat ENOTSUP as meaning
"DPDK isn't available on this machine", which isn't a fatal error for
pcap_findalldevs() - we just don't find any DPDK devices.  Treate
EALREADY as meaning "we already called this", and note that we've done
so.  For other errors mentioned in the DPDK documentation, provide error
message strings as per the documentation for the error.

For pcap_findalldevs(), if we have no available Ethernet ports, just
report no devices, don't report a fatal error.
pcap-dpdk.c