Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2022 14:06:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262622] [pf][patch] fix showing rules in (some) nested anchors
Message-ID:  <bug-262622-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262622

            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=3D232517&action=
=3Dedit
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:=20

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 =3D 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 .

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262622-227>