diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-03 13:14:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-03 13:14:56 +0000 |
commit | 41a9f280c4db4bc866e28654f125cdb998b6e9ed (patch) | |
tree | 6d819f1e8c2e85d555ae7da7633b224f52940017 /package/libs/libpcap/patches/201-space_optimization.patch | |
parent | 55a76c19b1502f60dc27141b6ac1f4a15e9f7744 (diff) | |
download | upstream-41a9f280c4db4bc866e28654f125cdb998b6e9ed.tar.gz upstream-41a9f280c4db4bc866e28654f125cdb998b6e9ed.tar.bz2 upstream-41a9f280c4db4bc866e28654f125cdb998b6e9ed.zip |
libpcap: update to version 1.7.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46776
Diffstat (limited to 'package/libs/libpcap/patches/201-space_optimization.patch')
-rw-r--r-- | package/libs/libpcap/patches/201-space_optimization.patch | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/package/libs/libpcap/patches/201-space_optimization.patch b/package/libs/libpcap/patches/201-space_optimization.patch index ee3cd3b858..f331a18357 100644 --- a/package/libs/libpcap/patches/201-space_optimization.patch +++ b/package/libs/libpcap/patches/201-space_optimization.patch @@ -1,6 +1,6 @@ --- a/gencode.c +++ b/gencode.c -@@ -511,20 +511,6 @@ pcap_compile_nopcap(int snaplen_arg, int +@@ -543,20 +543,6 @@ pcap_compile_nopcap(int snaplen_arg, int } /* @@ -23,7 +23,7 @@ * back to another unresolved block (or nil). At least one of the fields --- a/pcap.c +++ b/pcap.c -@@ -1075,6 +1075,59 @@ static const u_char charmap[] = { +@@ -1087,6 +1087,59 @@ static const u_char charmap[] = { (u_char)'\374', (u_char)'\375', (u_char)'\376', (u_char)'\377', }; @@ -85,7 +85,7 @@ { --- a/optimize.c +++ b/optimize.c -@@ -2193,45 +2193,6 @@ icode_to_fcode(struct block *root, u_int +@@ -2203,45 +2203,6 @@ icode_to_fcode(struct block *root, u_int return fp; } @@ -130,4 +130,30 @@ - #ifdef BDEBUG static void - opt_dump(struct block *root) + dot_dump_node(struct block *block, struct bpf_program *prog, FILE *out) +--- a/pcap-common.c ++++ b/pcap-common.c +@@ -1372,14 +1372,23 @@ swap_pseudo_headers(int linktype, struct + switch (linktype) { + + case DLT_USB_LINUX: ++#ifndef PCAP_SUPPORT_USB ++ return; ++#endif + swap_linux_usb_header(hdr, data, 0); + break; + + case DLT_USB_LINUX_MMAPPED: ++#ifndef PCAP_SUPPORT_USB ++ return; ++#endif + swap_linux_usb_header(hdr, data, 1); + break; + + case DLT_NFLOG: ++#ifndef PCAP_SUPPORT_NETFILTER ++ return; ++#endif + swap_nflog_header(hdr, data); + break; + } |