ifa_ifwithroute() is the only magic place where an AF_LINK sockaddr
authormpi <mpi@openbsd.org>
Tue, 22 Apr 2014 12:35:00 +0000 (12:35 +0000)
committermpi <mpi@openbsd.org>
Tue, 22 Apr 2014 12:35:00 +0000 (12:35 +0000)
commit08625885fa23d3f7da2942711e681d3e63bddd33
tree0bd1f40d153cc52e152cfbebf0158bfe7a955d69
parentdc298c78c7ddc63aa5f30d1b752491af7fa91027
ifa_ifwithroute() is the only magic place where an AF_LINK sockaddr
can be given to ifa_ifwithnet().

Handle this specific case directly and let ifa_ifwithnet() do only
one thing:  iterate on all the addresses of all the interfaces in a
given routing domain to return the most specific matching address.

ok mikeb@
sys/net/if.c
sys/net/route.c