Error out if -netmask/-prefixlen does not follow the destination parameter
authorkn <kn@openbsd.org>
Tue, 10 Jul 2018 13:11:38 +0000 (13:11 +0000)
committerkn <kn@openbsd.org>
Tue, 10 Jul 2018 13:11:38 +0000 (13:11 +0000)
commitee347062cff4f4764fd047d5c8943b1de8e0eb10
tree39c68076a091a632d68fc3ac09cf372b4ca1138d
parentb1af989d5673ae0cd989a655aa6ef8ad703bae87
Error out if -netmask/-prefixlen does not follow the destination parameter

Since the address string comes last, `-prefixlen 56 2001:db8::' silently
installs a route for /64 since that's the currently implied prefix length.

The manual page already states that these options must follow the
destination parameter in order to have any effect.

Discussed at length with many
OK benno sthen bluhm jca
sbin/route/route.c