On PPP links the link-local address is a /128 holding the interface
identifier negotiated by IPV6CP (RFC 5072), e.g. on ng_iface(4) with
net/mpd5 or on tun(4). When stable addresses are disabled, in6_ifadd()
only takes the identifier from a link-local address whose prefix length
matches the advertised one, so on these links it falls back to
in6_get_ifid(), which borrows an EUI-64 from another interface or makes
up a random one. ISPs may only route addresses using the negotiated
identifier.
Treat a /128 link-local address on a point-to-point PPP interface
(IFT_PPP, e.g. tun(4), and IFT_PROPVIRTUAL for ng_iface(4)) as holding
a 64-bit interface identifier, and add a test case using a tun(4)
interface. Other point-to-point interfaces such as gif(4) and gre(4)
are left alone: a /128 link-local address there is often a hand-picked
fe80::1 or fe80::2, which would collide with the router.
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")