-/* $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 $ */
/*
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);
}
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);
}