From: Ilya Dryomov Date: Tue, 4 Jan 2011 12:13:27 +0000 (+0200) Subject: network - Fix pf build when no INET6 X-Git-Tag: v2.11.0~396 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/2dba2225191859832514d02c72ea54e3a8b2bb19 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. --- diff --git a/sys/net/pf/pf.c b/sys/net/pf/pf.c index 1dc8d4db94..770f5f83d0 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))