Index: head/net/libpcap/Makefile =================================================================== --- head/net/libpcap/Makefile (revision 419702) +++ head/net/libpcap/Makefile (revision 419703) @@ -1,38 +1,39 @@ # Created by: Bruce M Simpson # $FreeBSD$ PORTNAME= libpcap PORTVERSION= 1.8.0 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= http://www.tcpdump.org/release/ MAINTAINER= garga@FreeBSD.org COMMENT= Ubiquitous network traffic capture library LICENSE= BSD3CLAUSE BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex GNU_CONFIGURE= yes USES= bison gmake USE_LDCONFIG= yes CONFIGURE_ARGS+=--enable-dbus=no \ --with-pcap=bpf CONFIGURE_ENV+= LEX=${LOCALBASE}/bin/flex PLIST_SUB+= PORTVERSION=${PORTVERSION} OPTIONS_DEFINE= DAG IPV6 DAG_DESC= Support for Endace DAG hardware IPV6_CONFIGURE_ENABLE= ipv6 DAG_CONFIGURE_WITH= dag DAG_LDFLAGS= -L${LOCALBASE}/lib .include .if ${ARCH} == "amd64" || ${ARCH} == "sparc64" CFLAGS+= -fPIC .endif .include Index: head/net/libpcap/files/patch-gencode.c =================================================================== --- head/net/libpcap/files/patch-gencode.c (nonexistent) +++ head/net/libpcap/files/patch-gencode.c (revision 419703) @@ -0,0 +1,45 @@ +--- gencode.c.orig 2016-07-30 13:42:44 UTC ++++ gencode.c +@@ -523,7 +523,8 @@ 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 +691,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,11 +4849,8 @@ gen_host6(compiler_state_t *cstate, stru + + #ifndef INET6 + static struct block * +-gen_gateway(eaddr, alist, proto, dir) +- const u_char *eaddr; +- bpf_u_int32 **alist; +- int proto; +- int dir; ++gen_gateway(compiler_state_t *cstate, const u_char *eaddr, ++ bpf_u_int32 **alist, int proto, int dir) + { + struct block *b0, *b1, *tmp; + +@@ -6414,7 +6414,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 Property changes on: head/net/libpcap/files/patch-gencode.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property