opnsense-src/sbin/pfctl
Kristof Provost 55f031f303 pfctl: parser must not ignore error from pfctl_optimize_ruleset()
Ignoring the error may cause pfctl(8) to load inconsistent ruleset
preventing pf(4) to enforce desired policy.

Issue reported and fix suggested by berts _from_ fastmail _dot_ com

'Looks good.' @deraadt

MFC after:	1 week
Obtained from:	OpenBSD, sashan <sashan@openbsd.org>, 9fd28a8cca
Sponsored by:	Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 343ace42f82a629374af4dc3a72da5f46f2c3feb)
2026-04-30 07:39:19 +02:00
..
tests pfctl: allow new page character (^L) in pf.conf 2026-02-18 12:55:25 +01:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
parse.y pfctl: allow new page character (^L) in pf.conf 2026-02-18 12:55:25 +01:00
pf.os Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pf_print_state.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pf_ruleset.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl.8 pfctl: add -T reset to touch pfras_tzero only for non-zero entries 2024-12-24 11:16:53 +01:00
pfctl.c pfctl: parser must not ignore error from pfctl_optimize_ruleset() 2026-04-30 07:39:19 +02:00
pfctl.h pfctl: clear statistic for specified addresses 2024-12-14 11:03:27 +01:00
pfctl_altq.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_ioctl.h pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
pfctl_optimize.c pfctl: use libpfctl instead of DIOCGETRULES directly 2023-12-04 16:20:57 +01:00
pfctl_osfp.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_parser.c pf: expose more syncookie state information to userspace 2023-11-13 08:10:27 +01:00
pfctl_parser.h pfctl: fix incorrect mask on dynamic address 2023-10-27 09:45:55 +02:00
pfctl_qstats.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_radix.c pfctl: add -T reset to touch pfras_tzero only for non-zero entries 2024-12-24 11:16:53 +01:00
pfctl_table.c pfctl: add -T reset to touch pfras_tzero only for non-zero entries 2024-12-24 11:16:53 +01:00