Introduce if_rtrequest() the successor of ifa_rtrequest().
authormpi <mpi@openbsd.org>
Sun, 25 Oct 2015 11:58:11 +0000 (11:58 +0000)
committermpi <mpi@openbsd.org>
Sun, 25 Oct 2015 11:58:11 +0000 (11:58 +0000)
commitdcb17c31bf7404748e80f11c1acaec2123371507
treec478650cab74ff7f4d1a794f3afd8fdf9597587a
parentb4de50120bf25816d3c78f45436aba48ae110da2
Introduce if_rtrequest() the successor of ifa_rtrequest().

L2 resolution depends on the protocol (encoded in the route entry) and
an ``ifp''.  Not having to care about an ``ifa'' makes our life easier
in our MP effort.  Fewer dependencies between data structures implies
fewer headaches.

Discussed with bluhm@, ok claudio@
20 files changed:
sys/net/if.c
sys/net/if_ethersubr.c
sys/net/if_gif.c
sys/net/if_gre.c
sys/net/if_loop.c
sys/net/if_ppp.c
sys/net/if_pppoe.c
sys/net/if_pppx.c
sys/net/if_spppsubr.c
sys/net/if_tun.c
sys/net/if_var.h
sys/net/route.c
sys/net/rtsock.c
sys/netinet/if_ether.c
sys/netinet/if_ether.h
sys/netinet/ip_carp.c
sys/netinet6/in6.c
sys/netinet6/nd6.c
sys/netinet6/nd6.h
sys/netinet6/nd6_rtr.c