git: 1854fb8fd8ba - main - ipfw: Spell PFIL_PASS correctly.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Nov 2022 11:20:39 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=1854fb8fd8ba7d263d37b7fbfa1b6420036a1f4a commit 1854fb8fd8ba7d263d37b7fbfa1b6420036a1f4a Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2022-11-12 13:20:06 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2022-11-14 11:20:19 +0000 ipfw: Spell PFIL_PASS correctly. Sponsored by: Netapp Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37375 --- sys/netpfil/ipfw/ip_fw_pfil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netpfil/ipfw/ip_fw_pfil.c b/sys/netpfil/ipfw/ip_fw_pfil.c index 01a44df47180..29ae06ba7713 100644 --- a/sys/netpfil/ipfw/ip_fw_pfil.c +++ b/sys/netpfil/ipfw/ip_fw_pfil.c @@ -139,7 +139,7 @@ again: args.rule = *((struct ipfw_rule_ref *)(tag+1)); m_tag_delete(*m0, tag); if (args.rule.info & IPFW_ONEPASS) - return (0); + return (PFIL_PASS); args.flags |= IPFW_ARGS_REF; } @@ -213,7 +213,7 @@ again: if ((args.flags & IPFW_ARGS_NH6) == 0) bcopy(psa, tag + 1, len); m_tag_prepend(*m0, tag); - ret = 0; + ret = PFIL_PASS; #ifdef INET6 /* IPv6 next hop needs additional handling */ if (args.flags & (IPFW_ARGS_NH6 | IPFW_ARGS_NH6PTR)) {