X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/f1f21f8cef03d3df90454231ead06e7aefedb69d..42f55dc34b24ea17c7752d489ba9887b7b34ea18:/package/libpcap/patches/106-protocol_api.patch diff --git a/package/libpcap/patches/106-protocol_api.patch b/package/libpcap/patches/106-protocol_api.patch index 09e3e880a..dc5e45a24 100644 --- a/package/libpcap/patches/106-protocol_api.patch +++ b/package/libpcap/patches/106-protocol_api.patch @@ -24,7 +24,7 @@ * we also have PF_PACKET support.) */ - sock_fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); -+ sock_fd = socket(PF_PACKET, SOCK_RAW, handle->opt.proto); ++ sock_fd = socket(PF_PACKET, SOCK_RAW, p->opt.proto); if (sock_fd == -1) { (void)snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "socket: %s", pcap_strerror(errno));