-/* $OpenBSD: ip6_forward.c,v 1.83 2015/10/19 12:11:28 mpi Exp $ */
+/* $OpenBSD: ip6_forward.c,v 1.84 2015/10/25 15:01:59 mpi Exp $ */
/* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */
/*
* [draft-ietf-ipngwg-icmp-v3-00.txt, Section 3.1]
*/
if (in6_addr2scopeid(m->m_pkthdr.ph_ifidx, &ip6->ip6_src) !=
- in6_addr2scopeid(rt->rt_ifp->if_index, &ip6->ip6_src)) {
+ in6_addr2scopeid(rt->rt_ifidx, &ip6->ip6_src)) {
ip6stat.ip6s_cantforward++;
ip6stat.ip6s_badscope++;
"src %s, dst %s, nxt %d, rcvif %u, outif %u\n",
src6, dst6,
ip6->ip6_nxt,
- m->m_pkthdr.ph_ifidx, rt->rt_ifp->if_index);
+ m->m_pkthdr.ph_ifidx, rt->rt_ifidx);
}
if (mcopy)
icmp6_error(mcopy, ICMP6_DST_UNREACH,
-/* $OpenBSD: nd6.c,v 1.160 2015/10/25 11:58:11 mpi Exp $ */
+/* $OpenBSD: nd6.c,v 1.161 2015/10/25 15:01:59 mpi Exp $ */
/* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */
/*
* XXX: should we consider
* older rcvif?
*/
- m->m_pkthdr.ph_ifidx = rt->rt_ifp->if_index;
+ m->m_pkthdr.ph_ifidx = rt->rt_ifidx;
icmp6_error(m, ICMP6_DST_UNREACH,
ICMP6_DST_UNREACH_ADDR, 0);