The kernel does not set the address family for the socket addresses
authorbluhm <bluhm@openbsd.org>
Sun, 16 Sep 2018 19:36:33 +0000 (19:36 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 16 Sep 2018 19:36:33 +0000 (19:36 +0000)
commit1fef2296ff1c5d648e1cad0e50e55cd49ac1c64e
treed4991e9d5097eb96699e25263cfb07345bad1004
parent6deddf91d05dcb36676ae5000ff97d87505ad0a9
The kernel does not set the address family for the socket addresses
that are used for netmask, broadcast, and destination address.  In
pfctl(8) take the family of the interface address and write it to
the other addresses.  This fixes some bugs when copy_satopfaddr()
copied only part of IPv6 addresses.  Print a warning if the address
family is unknown.
OK kn@
sbin/pfctl/pfctl_parser.c