diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-24 10:36:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-05-24 10:36:25 +0000 |
commit | 1b802fb2bee6c937c3bdf42d996dded24180baad (patch) | |
tree | 66ccfa6307c7efe80c8b514568e2d4e154a25f17 /package/libpcap/patches/202-protocol_api.patch | |
parent | 5171c481026c2dea7b96ee40d6f25f4b33eb0c32 (diff) | |
download | upstream-1b802fb2bee6c937c3bdf42d996dded24180baad.tar.gz upstream-1b802fb2bee6c937c3bdf42d996dded24180baad.tar.bz2 upstream-1b802fb2bee6c937c3bdf42d996dded24180baad.zip |
[package] libpcap: add -fpic, refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26999 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libpcap/patches/202-protocol_api.patch')
-rw-r--r-- | package/libpcap/patches/202-protocol_api.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/libpcap/patches/202-protocol_api.patch b/package/libpcap/patches/202-protocol_api.patch index 892aeb7e0d..6d59b495d0 100644 --- a/package/libpcap/patches/202-protocol_api.patch +++ b/package/libpcap/patches/202-protocol_api.patch @@ -105,11 +105,10 @@ return (p); } -@@ -317,6 +319,15 @@ pcap_set_buffer_size(pcap_t *p, int buff - return 0; +@@ -318,6 +320,15 @@ pcap_set_buffer_size(pcap_t *p, int buff } -+int + int +pcap_set_protocol(pcap_t *p, unsigned short proto) +{ + if (pcap_check_activated(p)) @@ -118,9 +117,10 @@ + 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" { |