diff options
author | kn <kn@cvs.openbsd.org> | 2019-01-29 10:58:32 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2019-01-29 10:58:32 +0000 |
commit | 4e707279c62597eb97b9afb403ab402a8ad0e907 (patch) | |
tree | 75220ff6fa86be5c2ddfd5f21b5afb349981c7a8 /sbin/sysctl | |
parent | 89a9729e5e95721024a2763632568bd7c2860494 (diff) |
Reuse copy_satopfaddr() when killing entries
Recently introduced in pfctl_parser.c r1.333, this helper nicely
simplifies code when copying IPs based on their address family, so use
it in five other places when killing state or source node entries.
All addresses copied in these code paths result from either
pfctl_parse_host() or pfctl_addrprefix() which guarantee the address
family set to AF_INET or AF_INET6. Therefore, effectively relaxing the
case of unhandled families from errx(3) in callers to warnx(3) in
copy_satopfaddr() is safe since it's never reached.
OK sashan
Diffstat (limited to 'sbin/sysctl')
0 files changed, 0 insertions, 0 deletions