[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 262622] [pf][patch] fix showing rules in (some) nested anchors"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Mar 2022 14:06:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262622 Bug ID: 262622 Summary: [pf][patch] fix showing rules in (some) nested anchors Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: matteo@FreeBSD.org CC: kp@freebsd.org Created attachment 232517 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232517&action=edit Patch that fixes the issue After commit 8c1400b0a1083c9e2bf8f3418eb3e3cfba1a8444 (review D34443 ), the printing of rules in nested anchors broke. The attached patch fixes it. Steps to reproduce: 1) in pf.conf add some nested anchors, eg: anchor test { anchor test2 { block in proto udp from any to any port 3999 } } 2) load the rules 3) pfctl -a "*" -sr Output before the patch: anchor "test" all { anchor "test2" all { pfctl: DIOCGETRULES: Invalid argument } } Output after the patch: anchor "test" all { anchor "test2" all { block drop in proto udp from any to any port = 3999 } } Note that some printing of some nested anchors is still broken (but likely it was broken even before the above commit). See bug #262590 . -- You are receiving this mail because: You are the assignee for the bug.