CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2018/07/17 14:57:27

Modified files:
        sbin/route     : route.c 

Log message:
stop assuming prefix lengths, remove inet6_makenetandmask()

This removes any logic that implies IPv6 destination host addresses to be
/64 subnets so they are taken as is.
RFC 3587 deprecated this in 2003 and our manual page actually states:

The route is assumed to be to a network if any of the following apply to
destination:

*   [...]
*   it is an IPv6 address with a ???/XX??? suffix (where XX is the number of
bits in the network portion of the address and is less than 128)
*   [...]

If destination is a valid IP address or host name, it is presumed to be a
route to a host.

Stripping relevant code from `inet6_makenetandmask()' left the function as
dummy wrapper around `prefixlen()', so zap it completely.

Discussed with and positive feedback from many, OK benno henning

Reply via email to