Page MenuHomeFreeBSD

pfctl: fix recrusive printing of anchors
ClosedPublic

Authored by kp on Sep 1 2022, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 8, 1:46 PM
Unknown Object (File)
Sat, Jun 8, 1:46 PM
Unknown Object (File)
Sat, Jun 8, 1:46 PM
Unknown Object (File)
Fri, Jun 7, 9:46 AM
Unknown Object (File)
Thu, May 23, 5:16 PM
Unknown Object (File)
Wed, May 22, 11:01 PM
Unknown Object (File)
May 3 2024, 6:07 PM
Unknown Object (File)
Mar 8 2024, 4:49 AM
Subscribers

Details

Summary

Fix a couple of problems with printing of anchors, in particular recursive
printing, both of inline anchors and when requested explicitly with a '*'
in the anchor.

  • Correct recursive printing of wildcard anchors (recurse into child anchors

rather than rules, which don't exist)

  • Print multi-part anchor paths correctly (pr6065)
  • Fix comments and prevent users from specifying multi-component names for

inline anchors.

tested by phessler
ok henning

Also fix the relevant pfctl test case to reflect the new (and now
correct) behaviour).

MFC after: 3 weeks
Obtained from: OpenBSD (mcbride, f9a568a27c740528301ca3419316c85a9fc7f1de)
Sponsored by: Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47220
Build 44107: arc lint + arc unit