]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: fix FOM_ICMP/POM_STICKYADDRESS clash
authorFranco Fichtner <franco@opnsense.org>
Sat, 6 Aug 2022 08:59:56 +0000 (10:59 +0200)
committerKristof Provost <kp@FreeBSD.org>
Sat, 6 Aug 2022 12:22:42 +0000 (14:22 +0200)
commit1e73fbd8b28946cb1341b51292082864943f0a89
treeecbb78acb775d83da377e9b1ae14af2db9531d34
parent93dd3adac7d84528c4ba4b0c3992931a38dbbc24
pfctl: fix FOM_ICMP/POM_STICKYADDRESS clash

pass inet proto icmp icmp-type {unreach}
pass route-to (if0 127.0.0.1/8) sticky-address inet

The wrong struct was being tested. The parser tries to prevent
"sticky-address sticky-address" syntax but was actually cross-rule
enforcing that ICMP filter cannot be before the use of "sticky-address"
in next rule.

MFC after: 2 weeks
Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D36050
sbin/pfctl/parse.y