diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-25 11:58:12 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-25 11:58:12 +0000 |
commit | c42a1a9fb10bbbacabbeea8312e186a426793c81 (patch) | |
tree | f8e6a39812653e58d7cbb89fffd2c26cfa2c0c8a /sys/netinet6/in6.c | |
parent | d7c02826bd0518fa3ad0c9ac4f00ba148683d42c (diff) |
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@
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 08d150409a4..65cc151cbc4 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.175 2015/09/12 20:50:17 mpi Exp $ */ +/* $OpenBSD: in6.c,v 1.176 2015/10/25 11:58:11 mpi Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -1261,14 +1261,8 @@ in6_ifinit(struct ifnet *ifp, struct in6_ifaddr *ia6, int newhost) ia6->ia_flags |= IFA_ROUTE; } - /* Add ownaddr as loopback rtentry, if necessary (ex. on p2p link). */ - if (newhost) { - /* set the rtrequest function to create llinfo */ - if ((ifp->if_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) == 0) - ia6->ia_ifa.ifa_rtrequest = nd6_rtrequest; - + if (newhost) rt_ifa_addlocal(&(ia6->ia_ifa)); - } return (error); } |