Move AF-specific mask logic from callers into set_ipmask()
authorkn <kn@openbsd.org>
Wed, 5 Sep 2018 21:16:26 +0000 (21:16 +0000)
committerkn <kn@openbsd.org>
Wed, 5 Sep 2018 21:16:26 +0000 (21:16 +0000)
commitc04427dd304c542b6bf753a850dfa3a32453ef43
treece0dc983383f27692ef63e471d5fad0dc655eb41
parentdb7b06aca1c587b50beb0a4239a5b917b3f83898
Move AF-specific mask logic from callers into set_ipmask()

Instead of doing the same dance with every caller, check for user provided
mask or address familiy specific maximum inside the function itself.

Feedback and OK claudio
sbin/pfctl/pfctl_parser.c
sbin/pfctl/pfctl_parser.h