HomeFreeBSD

pfctl: Make print_hostname() less AF-specific

Description

pfctl: Make print_hostname() less AF-specific

Reduce differences address families and replace strlcpy() with simpler
if/else logic as done in print_addr_str().

OK sashan

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

Details

Provenance
kpAuthored on Jun 27 2025, 12:35 PM
Parents
rGfb48e6d71b1f: pfctl: Remove unused af argument from unmask()
Branches
Unknown
Tags
Unknown