freebsd-dev/sbin/pfctl
Kristof Provost 585a5ed0be pfctl: fix recrusive printing of anchors
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:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D36416
2022-09-06 10:42:10 +02:00
..
tests pfctl: fix recrusive printing of anchors 2022-09-06 10:42:10 +02:00
Makefile pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
parse.y pfctl: fix recrusive printing of anchors 2022-09-06 10:42:10 +02:00
pf_print_state.c pfctl: cache getprotobynumber results 2021-07-01 21:31:45 +00:00
pf_ruleset.c pf: add anchor support for ether rules 2022-03-02 17:00:07 +01:00
pf.os Move pf.os to sbin/pfctl/ 2018-08-11 13:58:26 +00:00
pfctl_altq.c pfctl(8): Fix a typo in a source code comment 2022-07-16 13:48:30 +02:00
pfctl_ioctl.h pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
pfctl_optimize.c pfctl: remove unused variable 2022-03-08 13:57:46 +01:00
pfctl_osfp.c
pfctl_parser.c pfctl: fix recrusive printing of anchors 2022-09-06 10:42:10 +02:00
pfctl_parser.h pfctl: print ethernet rules when called with '-n' 2022-03-02 17:00:08 +01:00
pfctl_qstats.c Extended pf(4) ioctl interface and pfctl(8) to allow bandwidths of 2018-08-22 19:38:48 +00:00
pfctl_radix.c libpfctl: relocate implementations of pfr_add/get/set_addrs 2022-04-04 19:14:23 +02:00
pfctl_table.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pfctl.8 pfctl.8: Use the serial comma 2022-03-03 18:32:27 +01:00
pfctl.c pfctl: fix recrusive printing of anchors 2022-09-06 10:42:10 +02:00
pfctl.h pf: add anchor support for ether rules 2022-03-02 17:00:07 +01:00