diff options
author | 2018-07-17 20:57:27 +0000 | |
---|---|---|
committer | 2018-07-17 20:57:27 +0000 | |
commit | a4729b6417c546d45bb1e98656bcd933607cdd65 (patch) | |
tree | c7fe2e2e60591e2ba9e00275e852d38bc21b6e2f /usr.bin/ssh/readconf.c | |
parent | TX packets, which can be either Ethernet or control packets, must be (diff) | |
download | wireguard-openbsd-a4729b6417c546d45bb1e98656bcd933607cdd65.tar.xz wireguard-openbsd-a4729b6417c546d45bb1e98656bcd933607cdd65.zip |
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
Diffstat (limited to 'usr.bin/ssh/readconf.c')
0 files changed, 0 insertions, 0 deletions