HomeFreeBSD

pfctl: Move AF-specific mask logic from callers into set_ipmask()

Description

pfctl: Move AF-specific mask logic from callers into set_ipmask()

Instead of doing the same dance with every caller, check for user provided
mask or address familiy specific maximum inside the function itself.

Feedback and OK claudio

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

Details

Provenance
kpAuthored on Jun 27 2025, 12:27 PM
Parents
rGe790bcd784c9: pfctl: Use error label in host_if()
Branches
Unknown
Tags
Unknown