opnsense-src/sbin/pfctl
Kristof Provost d64ba46792 pfctl: Rewrite some ugly for loops
This fixes a few KNF issues and ugly line wrapping by using a local
version of nitems(); fix two bsearch() on top.

ok claudio

FreeBSD note: we already used nitems(), but now pick up the use of size_t over
unsigned int.

Obtained from:	OpenBSD, tb <tb@openbsd.org>, 3d49904c6e
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2025-09-02 23:10:19 +02:00
..
tests pf: Add prefer-ipv6-nexthop option for route-to pools 2025-08-29 09:58:40 +02:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
parse.y pf: fix ICMP type/code representation 2025-09-02 23:10:19 +02:00
pf.os Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pf_print_state.c pf: Use different address family for source and redirection address 2025-08-01 12:11:30 +02:00
pf_ruleset.c sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pfctl.8 pfctl.8: small cleanups 2025-08-20 10:08:46 +02:00
pfctl.c pfctl: memset the pfctl struct in pfctl_reset() 2025-08-06 00:27:16 +02:00
pfctl.h pfctl: Do the actual pfr_strerror() to pf_strerror() rename 2025-07-12 11:57:50 +02: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 pf: rename PF_OPT_TABLE_PREFIX to PF_OPTIMIZER_TABLE_PFX 2025-07-12 11:57:52 +02:00
pfctl_osfp.c pfctl: recursively flush rules and tables 2025-07-09 10:57:50 +02:00
pfctl_parser.c pfctl: Rewrite some ugly for loops 2025-09-02 23:10:19 +02:00
pfctl_parser.h pf: Use different address family for source and redirection address 2025-08-01 12:11:30 +02:00
pfctl_qstats.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_radix.c pfctl: zero the number of added/deleted addresses 2025-08-18 12:04:01 +02:00
pfctl_table.c pfctl: Do the actual pfr_strerror() to pf_strerror() rename 2025-07-12 11:57:50 +02:00