freebsd-dev/sbin/pfctl
Kristof Provost 09c7f23869 pfctl: delay label macro expansion until after rule optimisation
We used to expand the $nr macro in labels into the rule number prior to
the optimisation step. This would occasionally produce incorrect rule
numbers in the labels.

Delay all macro expansion until after the optimisation step to ensure
that we expand the correct values.

MFC after:	1 week
Reported by:	Özkan KIRIK <ozkan.kirik@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D32488
2021-10-15 22:19:45 +02:00
..
tests pfctl tests: Test fairq configuration 2021-05-20 14:06:23 +02:00
Makefile pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
Makefile.depend
parse.y pfctl: delay label macro expansion until after rule optimisation 2021-10-15 22:19:45 +02:00
pf_print_state.c pfctl: cache getprotobynumber results 2021-07-01 21:31:45 +00:00
pf_ruleset.c pf: match keyword support 2021-07-17 12:01:08 +02:00
pf.os Move pf.os to sbin/pfctl/ 2018-08-11 13:58:26 +00:00
pfctl_altq.c pfctl: Fix crash on ALTQ configuration 2021-05-20 14:06:22 +02:00
pfctl_ioctl.h pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
pfctl_optimize.c libpfctl: Switch to pfctl_rule 2021-04-10 11:16:02 +02:00
pfctl_osfp.c
pfctl_parser.c pfctl: userspace adaptive syncookies configration 2021-09-29 15:11:54 +02:00
pfctl_parser.h pfctl: Remove unused variable 2021-10-07 19:50:01 +02: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 pfctl: Warn users when they run into kernel limits 2019-12-14 02:03:47 +00:00
pfctl_table.c
pfctl.8 pf: Support killing 'matching' states 2021-05-07 22:13:31 +02:00
pfctl.c pfctl: delay label macro expansion until after rule optimisation 2021-10-15 22:19:45 +02:00
pfctl.h pfctl: delay label macro expansion until after rule optimisation 2021-10-15 22:19:45 +02:00