summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-01-29 10:58:31 +0000
committerkn <kn@openbsd.org>2019-01-29 10:58:31 +0000
commit0ff82421d83962a6e348424fabb01a1e0860c3eb (patch)
treee5261f0738a117b3ade84f2a2fa1206406fa3f7a /sys/net/if_mpe.c
parentadd /etc/unwind.conf in changelist(5) (diff)
downloadwireguard-openbsd-0ff82421d83962a6e348424fabb01a1e0860c3eb.tar.xz
wireguard-openbsd-0ff82421d83962a6e348424fabb01a1e0860c3eb.zip
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 'sys/net/if_mpe.c')
0 files changed, 0 insertions, 0 deletions