summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_ifattach.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-24 16:24:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-24 16:24:22 +0000
commit4d825a994d3fbf2d286c196b4093c91e97a1e53e (patch)
tree755c91b15c2b6a858bfccddff10422055b0d55fc /sys/netinet6/in6_ifattach.c
parente0c077b4ae2af1033ae68483240bcafd270f6d43 (diff)
Convert to rt_ifidx.
ok bluhm@
Diffstat (limited to 'sys/netinet6/in6_ifattach.c')
-rw-r--r--sys/netinet6/in6_ifattach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c
index ef4ed7a871f..b81cd95d5c6 100644
--- a/sys/netinet6/in6_ifattach.c
+++ b/sys/netinet6/in6_ifattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_ifattach.c,v 1.97 2015/10/22 15:37:47 bluhm Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.98 2015/10/24 16:24:21 mpi Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
@@ -546,7 +546,7 @@ in6_ifdetach(struct ifnet *ifp)
sin6.sin6_addr = in6addr_intfacelocal_allnodes;
sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
rt = rtalloc(sin6tosa(&sin6), 0, ifp->if_rdomain);
- if (rt && rt->rt_ifp == ifp) {
+ if (rt && rt->rt_ifidx == ifp->if_index) {
rtdeletemsg(rt, ifp->if_rdomain);
rtfree(rt);
}
@@ -558,7 +558,7 @@ in6_ifdetach(struct ifnet *ifp)
sin6.sin6_addr = in6addr_linklocal_allnodes;
sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
rt = rtalloc(sin6tosa(&sin6), 0, ifp->if_rdomain);
- if (rt && rt->rt_ifp == ifp) {
+ if (rt && rt->rt_ifidx == ifp->if_index) {
rtdeletemsg(rt, ifp->if_rdomain);
rtfree(rt);
}