diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-09-10 15:20:39 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2021-09-17 15:54:39 +0000 |
commit | e23d47cd9c753644f3b17771824111aba5132fbc (patch) | |
tree | f7e5fbea7f539c4b261406331bd7653100b33591 | |
parent | 4ef480e600b9f48217e58ea688527362846d5982 (diff) | |
download | src-e23d47cd9c753644f3b17771824111aba5132fbc.tar.gz src-e23d47cd9c753644f3b17771824111aba5132fbc.zip |
pf: fix NOINET6 builds
MFC after: 1 week
Sponsored by: Modirum MDPay
(cherry picked from commit 9bdff593ead9434e01cfb6084f21c3e93a22963d)
-rw-r--r-- | sys/netpfil/pf/pf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 0722a864a574..2401dff57dff 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -1486,6 +1486,7 @@ static bool pf_isforlocal(struct mbuf *m, int af) { switch (af) { +#ifdef INET case AF_INET: { struct rm_priotracker in_ifa_tracker; struct ip *ip; @@ -1502,6 +1503,8 @@ pf_isforlocal(struct mbuf *m, int af) IN_IFADDR_RUNLOCK(&in_ifa_tracker); break; } +#endif +#ifdef INET6 case AF_INET6: { struct ip6_hdr *ip6; struct in6_ifaddr *ia; @@ -1511,6 +1514,7 @@ pf_isforlocal(struct mbuf *m, int af) return (false); return (! (ia->ia6_flags & IN6_IFF_NOTREADY)); } +#endif default: panic("Unsupported af %d", af); } |