git: c5a9d5ff0c0c - stable/14 - pf: use AF_INET6 when comparing IPv6 addresses
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Sep 2024 21:33:17 UTC
The branch stable/14 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=c5a9d5ff0c0cca6b4650e7853580ae3dbd623fd6
commit c5a9d5ff0c0cca6b4650e7853580ae3dbd623fd6
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-08-28 13:40:42 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-09-23 15:09:42 +0000
pf: use AF_INET6 when comparing IPv6 addresses
Reviewed by: zlei
MFC after: 1 week
Obtained from: OpenBSD, henning <henning@openbsd.org>, cf7c0bf78a
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46576
(cherry picked from commit 50ecaf1bd46a834c4fdaf483eb39df7bb62501e3)
---
sys/netpfil/pf/pf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index f4ee8fb3344a..d6541bc6627b 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -7413,10 +7413,10 @@ pf_test_state_other(struct pf_kstate **state, struct pfi_kkif *kif,
#endif /* INET */
#ifdef INET6
case AF_INET6:
- if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], AF_INET))
+ if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], AF_INET6))
PF_ACPY(pd->src, &nk->addr[pd->sidx], pd->af);
- if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET))
+ if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET6))
PF_ACPY(pd->dst, &nk->addr[pd->didx], pd->af);
#endif /* INET6 */
}