HomeFreeBSD

pfctl: Fill netmask AF-independently in print_host()

Description

pfctl: Fill netmask AF-independently in print_host()

Instead of masking the host address in two different ways, just fill it
no matter the address family. In case of AF_INET, setting the extra 96 bit
does not hurt.

While here, stop resetting `af' for no reason and move up the variable
declaration.

OK benno sashan

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

Details

Provenance
kpAuthored on Jun 27 2025, 12:30 PM
Parents
rG119fb2a288a4: sh(1): Do not interpret chdir to "" as equivalent to chdir with no argument
Branches
Unknown
Tags
Unknown