Without this patch, AF_INET6 pktb_alloc() creates a pktb with NULL network_header. But in src/extra/ipv6.c, nfq_ip6_get_hdr() assumes that pktb->network_header is valid. Updated: src/extra/pktbuff.c: Treat AF_INET6 the same as AF_INET. Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx> --- src/extra/pktbuff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extra/pktbuff.c b/src/extra/pktbuff.c index 3a08d49..c52b674 100644 --- a/src/extra/pktbuff.c +++ b/src/extra/pktbuff.c @@ -63,6 +63,7 @@ struct pkt_buff *pktb_alloc(int family, void *data, size_t len, size_t extra) switch(family) { case AF_INET: + case AF_INET6: pktb->network_header = pktb->data; break; case AF_BRIDGE: { -- 2.14.5