git: 5f739302ba0a - main - pfctl: Zap dead code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Jun 2025 15:16:17 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=5f739302ba0ab615ba640b0c65d85d67dd826cc8
commit 5f739302ba0ab615ba640b0c65d85d67dd826cc8
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-06-24 11:52:53 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-06-27 14:55:17 +0000
pfctl: Zap dead code
Commented since r1.465 (2004).
OK deraadt benno jca sashan
Obtained from: OpenBSD, kn <kn@openbsd.org>, 478eec1c5a
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sbin/pfctl/parse.y | 8 --------
1 file changed, 8 deletions(-)
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 39d5ba317653..9b89dc7642c5 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -2492,14 +2492,6 @@ pfrule : action dir logquick interface route af proto fromto
"apply to tcp");
YYERROR;
}
-#if 0
- if (($9.flags.b1 & parse_flags("S")) == 0 &&
- $8.src_os) {
- yyerror("OS fingerprinting requires "
- "the SYN TCP flag (flags S/SA)");
- YYERROR;
- }
-#endif
}
r.tos = $9.tos;