summaryrefslogtreecommitdiff
path: root/package/libpcap
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-05 19:22:55 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-05 19:22:55 +0200
commit21ab00c61a6333b2c610a2a83e59faf195f56b2e (patch)
tree9e0c41af8a6eb27db97038aa2a1a3a5e78421ffb /package/libpcap
parent504161e7b18583fdb7c0acc9f1e586af72c074d4 (diff)
libpcap: update to 1.8.0
Diffstat (limited to 'package/libpcap')
-rw-r--r--package/libpcap/Makefile4
-rw-r--r--package/libpcap/patches/patch-Makefile_in (renamed from package/libpcap/patch-Makefile_in)6
-rw-r--r--package/libpcap/patches/patch-gencode_c40
3 files changed, 45 insertions, 5 deletions
diff --git a/package/libpcap/Makefile b/package/libpcap/Makefile
index f98098921..0130bad18 100644
--- a/package/libpcap/Makefile
+++ b/package/libpcap/Makefile
@@ -4,9 +4,9 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= libpcap
-PKG_VERSION:= 1.7.4
+PKG_VERSION:= 1.8.0
PKG_RELEASE:= 1
-PKG_HASH:= 7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0
+PKG_HASH:= f47b51533f9f060afb304010ea5cbf51d032707333bca70c36351d255754659c
PKG_DESCR:= low-level packet capture library
PKG_SECTION:= libs/net
PKG_URL:= http://www.tcpdump.org/
diff --git a/package/libpcap/patch-Makefile_in b/package/libpcap/patches/patch-Makefile_in
index cd7bdc961..203dd3c6e 100644
--- a/package/libpcap/patch-Makefile_in
+++ b/package/libpcap/patches/patch-Makefile_in
@@ -1,9 +1,9 @@
Use $(sort) here, which implicitly removes duplicates.
Otherwise our CFLAGS are passed in via CCOPT and CFLAGS leading
to duplicate -fhonour-copts passing.
---- libpcap-1.6.2.orig/Makefile.in 2014-07-03 00:12:49.000000000 +0200
-+++ libpcap-1.6.2/Makefile.in 2014-09-12 15:12:48.567519024 +0200
-@@ -61,7 +61,7 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
+--- libpcap-1.8.0.orig/Makefile.in 2016-07-30 15:42:44.000000000 +0200
++++ libpcap-1.8.0/Makefile.in 2016-08-05 02:22:41.124794216 +0200
+@@ -62,7 +62,7 @@ DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
PROG=libpcap
# Standard CFLAGS
diff --git a/package/libpcap/patches/patch-gencode_c b/package/libpcap/patches/patch-gencode_c
new file mode 100644
index 000000000..63378e414
--- /dev/null
+++ b/package/libpcap/patches/patch-gencode_c
@@ -0,0 +1,40 @@
+--- libpcap-1.8.0.orig/gencode.c 2016-07-30 15:42:44.000000000 +0200
++++ libpcap-1.8.0/gencode.c 2016-08-05 02:35:50.655555060 +0200
+@@ -523,7 +523,7 @@ static struct block *gen_host6(compiler_
+ struct in6_addr *, int, int, int);
+ #endif
+ #ifndef INET6
+-static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
++static struct block *gen_gateway(compiler_state_t *, const u_char *, bpf_u_int32 **, int, int);
+ #endif
+ static struct block *gen_ipfrag(compiler_state_t *);
+ static struct block *gen_portatom(compiler_state_t *, int, bpf_int32);
+@@ -690,7 +690,9 @@ pcap_compile(pcap_t *p, struct bpf_progr
+ }
+ initchunks(&cstate);
+ cstate.no_optimize = 0;
++#ifdef INET6
+ cstate.ai = NULL;
++#endif
+ cstate.ic.root = NULL;
+ cstate.ic.cur_mark = 0;
+ cstate.bpf_pcap = p;
+@@ -4846,7 +4848,8 @@ gen_host6(compiler_state_t *cstate, stru
+
+ #ifndef INET6
+ static struct block *
+-gen_gateway(eaddr, alist, proto, dir)
++gen_gateway(cstate, eaddr, alist, proto, dir)
++ compiler_state_t *cstate;
+ const u_char *eaddr;
+ bpf_u_int32 **alist;
+ int proto;
+@@ -6414,7 +6417,7 @@ gen_scode(compiler_state_t *cstate, cons
+ alist = pcap_nametoaddr(name);
+ if (alist == NULL || *alist == NULL)
+ bpf_error(cstate, "unknown host '%s'", name);
+- b = gen_gateway(eaddr, alist, proto, dir);
++ b = gen_gateway(cstate, eaddr, alist, proto, dir);
+ free(eaddr);
+ return b;
+ #else