diff options
author | Xin LI <delphij@FreeBSD.org> | 2012-10-04 21:07:56 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2012-10-04 21:07:56 +0000 |
commit | 3ca61f8b14e648b24f10072d662c12fb35fc4b44 (patch) | |
tree | c0321d3af9efd8c73c3684447c146eec380fca7b /pcap-netfilter-linux.c | |
parent | 5a0615f5c40ce036a7e13cfffe00927f845ad563 (diff) |
Notes
Diffstat (limited to 'pcap-netfilter-linux.c')
-rw-r--r-- | pcap-netfilter-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-netfilter-linux.c b/pcap-netfilter-linux.c index 225e49f904e2..f9c6beff6e82 100644 --- a/pcap-netfilter-linux.c +++ b/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)); |