Introduce copy_satopfaddr()
authorkn <kn@openbsd.org>
Mon, 10 Sep 2018 16:17:48 +0000 (16:17 +0000)
committerkn <kn@openbsd.org>
Mon, 10 Sep 2018 16:17:48 +0000 (16:17 +0000)
commit675ff33b8c14512018b6e9629b05c320d91d8914
tree5b357fb4175e4837e510c2e89180d4cbd24c2637
parentf02cb2e83cda2e7c843af31d86dd656fd741d8ab
Introduce copy_satopfaddr()

Move the same dance around v4/v6 for copying IP addresses from sockaddr
into pf_addr to avoid duplicate code and improve readability.

Feedback and OK bluhm
sbin/pfctl/pfctl_parser.c