Allow multiple connected/interface routes to exist at the same time.
authorclaudio <claudio@openbsd.org>
Fri, 15 May 2015 12:00:57 +0000 (12:00 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 15 May 2015 12:00:57 +0000 (12:00 +0000)
commitcfc71c8b10d8f3bcfadb0824a6cfcb656be46181
treecae3b612d6b6f8201c4df49e2da0716d978f8f36
parent1cc422ba2cb2a84bc4e0fac65c07bfc33e174aad
Allow multiple connected/interface routes to exist at the same time.
Use the existing multipath code. Switch away from using the ifa address
when making the cloning route and instead put a dummy sockaddr_dl route
in. With this it is possible to use the same network on multiple interfaces
at the same time. So if wireless and ethernet share the same network
the system will use the wired connection as long as there is link.
Still missing is builtin proxy-arp for the other interface IPs to allow
hitless failover.
OK mpi@
sys/net/route.c
sys/netinet/if_ether.c
sys/netinet/in.c
sys/netinet6/in6.c
sys/netinet6/nd6.c
sys/netinet6/nd6_rtr.c