From 2dba2225191859832514d02c72ea54e3a8b2bb19 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Tue, 4 Jan 2011 14:13:27 +0200 Subject: [PATCH] network - Fix pf build when no INET6 * Definition of struct ip6_hdr is not included when no INET6, #ifdef out the code that uses it. --- sys/net/pf/pf.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sys/net/pf/pf.c b/sys/net/pf/pf.c index 1dc8d4d..770f5f8 100644 --- a/sys/net/pf/pf.c +++ b/sys/net/pf/pf.c @@ -3477,10 +3477,12 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, h4 = mtod(m, struct ip *); len = h4->ip_len - off; break; +#ifdef INET6 case AF_INET6: h6 = mtod(m, struct ip6_hdr *); len = h6->ip6_plen - (off - sizeof(*h6)); break; +#endif } if (pf_check_proto_cksum(m, off, len, IPPROTO_TCP, af)) -- 1.7.7.2