HomeFreeBSD

pfctl: improve bitmask printing

Description

pfctl: improve bitmask printing

In some cases the netmask gets set to a full 128 bit mask even if no
address family is selected; don't print the v6 mask if it's a v4 address.

Obtained from: OpenBSD, mcbride <mcbride@openbsd.org>, f6d7b41f07
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46584

Details

Provenance
kpAuthored on Thu, Aug 29, 11:48 AM
Differential Revision
D46584: pfctl: improve bitmask printing
Parents
rG03d11291d8ec: pf: fix potential memory leaks in pf_create_state()
Branches
Unknown
Tags
Unknown