HomeFreeBSD

pf: Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.

Description

pf: Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.

This is clearer and more consistent with the rest of the kernel.
OK deraadt@ sashan@

Obtained from: OpenBSD, millert <millert@openbsd.org>, d04cdf616e
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Jul 3 2025, 9:26 AM
Parents
rG2811ec176c40: pfctl: Fix file descriptor leak due to popfile() never closing the main config…
Branches
Unknown
Tags
Unknown