Use strtonum in host()
authorkn <kn@openbsd.org>
Sat, 28 Jul 2018 23:36:54 +0000 (23:36 +0000)
committerkn <kn@openbsd.org>
Sat, 28 Jul 2018 23:36:54 +0000 (23:36 +0000)
commite351e6cba3fb961b8d1e5be874c39ddb7da9f6b5
tree79d7466ea14778c2b652e826e616f322f0539cfa
parent259a39c7c6be101e909a65572935a22b41bf1074
Use strtonum in host()

This is simpler than checking three cases for `q' and gives nicer error
messages. While here, use `v6mask' as maximum netmask instead of hardcoding
it.

OK sashan
regress/sbin/pfctl/pfail40.ok
sbin/pfctl/pfctl_parser.c