Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2021 16:19:07 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9bdff593ead9 - main - pf: fix NOINET6 builds
Message-ID:  <202109101619.18AGJ7g6005124@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9bdff593ead9434e01cfb6084f21c3e93a22963d

commit 9bdff593ead9434e01cfb6084f21c3e93a22963d
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-09-10 15:20:39 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-09-10 16:15:44 +0000

    pf: fix NOINET6 builds
    
    MFC after:      1 week
    Sponsored by:   Modirum MDPay
---
 sys/netpfil/pf/pf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index 5d6c7363b3ab..221e0c87c11f 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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109101619.18AGJ7g6005124>