Change #210843
Category | libpcap |
Changed by | Denis Ovsienko <denis | @ovsienko.info>
Changed at | Tue 08 Oct 2024 00:34:29 |
Repository | https://git.tcpdump.org/libpcap |
Project | libpcap |
Branch | master |
Revision | ec9c889e8e401dd035a16c70c6329e94545b342c |
Comments
Improve some error reporting in pcap-snf.c. [skip ci] The myri_snf kernel module is not loaded, so the host has no snfN interfaces. Whether caused by this or not, snf_init() in this case both sets errno to ENOENT and returns it. Arguably, this ought to be ENODEV, but in any case it is more useful to see at least some error message than just "failed". Before: Error in pcap_findalldevs: snf_getifaddrs: snf_init failed After: Error in pcap_findalldevs: snf_init: No such file or directory
Changed files
- pcap-snf.c