X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2f232288eea0d46b4278215e32faac385c8d3760..4eddfed4b3d2c5afc0dd10662ad7f32808804329:/package/libpcap/patches/202-protocol_api.patch diff --git a/package/libpcap/patches/202-protocol_api.patch b/package/libpcap/patches/202-protocol_api.patch index 6d59b495d..892aeb7e0 100644 --- a/package/libpcap/patches/202-protocol_api.patch +++ b/package/libpcap/patches/202-protocol_api.patch @@ -105,10 +105,11 @@ return (p); } -@@ -318,6 +320,15 @@ pcap_set_buffer_size(pcap_t *p, int buff +@@ -317,6 +319,15 @@ pcap_set_buffer_size(pcap_t *p, int buff + return 0; } - int ++int +pcap_set_protocol(pcap_t *p, unsigned short proto) +{ + if (pcap_check_activated(p)) @@ -117,10 +118,9 @@ + return 0; +} + -+int + int pcap_activate(pcap_t *p) { - int status; --- a/pcap/pcap.h +++ b/pcap/pcap.h @@ -68,6 +68,7 @@ extern "C" {