diff options
author | delphij <delphij@FreeBSD.org> | 2012-10-05 18:42:50 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-10-05 18:42:50 +0000 |
commit | a130b811b9a9a99ca8b02c74857b7fa5be4a6e2a (patch) | |
tree | 8be204ab523349d7c0ed42856fee7a1e630b1c2b /contrib/libpcap/pcap-netfilter-linux.c | |
parent | 29b9cf1535a8a73d0b442723dcf36c041ca9c004 (diff) | |
parent | 506bfc5bcf433e44fd03bc0fd0cea5e1ec994d1d (diff) | |
download | FreeBSD-src-a130b811b9a9a99ca8b02c74857b7fa5be4a6e2a.zip FreeBSD-src-a130b811b9a9a99ca8b02c74857b7fa5be4a6e2a.tar.gz |
MFV: libpcap 1.3.0.
MFC after: 4 weeks
Diffstat (limited to 'contrib/libpcap/pcap-netfilter-linux.c')
-rw-r--r-- | contrib/libpcap/pcap-netfilter-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libpcap/pcap-netfilter-linux.c b/contrib/libpcap/pcap-netfilter-linux.c index 225e49f..f9c6bef 100644 --- a/contrib/libpcap/pcap-netfilter-linux.c +++ b/contrib/libpcap/pcap-netfilter-linux.c @@ -452,8 +452,8 @@ netfilter_platform_finddevs(pcap_if_t **alldevsp, char *err_str) sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER); if (sock < 0) { - /* if netlink is not supported this this is not fatal */ - if (errno == EAFNOSUPPORT) + /* if netlink is not supported this is not fatal */ + if (errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) return 0; snprintf(err_str, PCAP_ERRBUF_SIZE, "Can't open netlink socket %d:%s", errno, pcap_strerror(errno)); |