Fill netmask AF-independently in print_host()
authorkn <kn@openbsd.org>
Thu, 6 Sep 2018 14:46:36 +0000 (14:46 +0000)
committerkn <kn@openbsd.org>
Thu, 6 Sep 2018 14:46:36 +0000 (14:46 +0000)
commit53f568abff35222ac92a2944772f8c6567f09901
treea7091301f2ca01a1da579dd06d95505b42926327
parent78420efa23336fa6db23ed1594af329f351ba0d1
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
sbin/pfctl/pf_print_state.c