-/* $OpenBSD: ip_output.c,v 1.303 2015/10/20 20:22:42 benno Exp $ */
+/* $OpenBSD: ip_output.c,v 1.304 2015/10/24 12:33:16 mpi Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
if (ISSET(ro->ro_rt->rt_flags, RTF_LOCAL))
ifp = if_ref(lo0ifp);
else
- ifp = if_ref(ro->ro_rt->rt_ifp);
+ ifp = if_get(ro->ro_rt->rt_ifidx);
if ((mtu = ro->ro_rt->rt_rmx.rmx_mtu) == 0)
mtu = ifp->if_mtu;
-/* $OpenBSD: in6_src.c,v 1.65 2015/10/22 16:33:32 mpi Exp $ */
+/* $OpenBSD: in6_src.c,v 1.66 2015/10/24 12:33:16 mpi Exp $ */
/* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */
/*
return (rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH);
if (rt != NULL)
- *retifp = if_ref(rt->rt_ifp);
+ *retifp = if_get(rt->rt_ifidx);
return (0);
}
-/* $OpenBSD: ip6_output.c,v 1.190 2015/10/19 12:11:28 mpi Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.191 2015/10/24 12:33:16 mpi Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
if (ISSET(rt->rt_flags, RTF_LOCAL))
ifp = if_ref(lo0ifp);
else
- ifp = if_ref(rt->rt_ifp);
+ ifp = if_get(rt->rt_ifidx);
} else {
*dst = dstsock;
}
error = EADDRNOTAVAIL;
break;
}
- ifp = if_ref(ro.ro_rt->rt_ifp);
+ ifp = if_get(ro.ro_rt->rt_ifidx);
rtfree(ro.ro_rt);
} else {
/*