Use a custom ifa_rtrequest function for point-to-point interfaces
authormpi <mpi@openbsd.org>
Mon, 5 May 2014 11:44:33 +0000 (11:44 +0000)
committermpi <mpi@openbsd.org>
Mon, 5 May 2014 11:44:33 +0000 (11:44 +0000)
commit7da1c79582926d7bf5db9de050dc83d671827eff
tree5c1627412f4f4e380453d1eba9a17c2633b291b4
parentade618396d90942eb2565a80de7cdd55d8f7dc14
Use a custom ifa_rtrequest function for point-to-point interfaces
instead of relying on hacks in nd6_rtrequest() to add a route to
loopback for each address configured on such interfaces.

While here document that abusing lo0 for local traffic is not safe
for interfaces in a non-default rdomain.

Tested by claudio@, jca@ and sthen@, ok sthen@
sys/net/if.c
sys/net/if_gif.c
sys/net/if_gre.c
sys/net/if_ppp.c
sys/net/if_pppx.c
sys/net/if_spppsubr.c
sys/net/if_tun.c
sys/net/if_var.h
sys/netinet/if_ether.c
sys/netinet6/in6.c
sys/netinet6/nd6.c