use ND_IFINFO().

This commit is contained in:
Hajimu UMEMOTO 2003-10-17 20:20:14 +00:00
parent 2925fa2283
commit 11e6ffbea3

View File

@ -2017,8 +2017,12 @@ frdest_t *fdp;
finaldst = ip6->ip6_dst;
error = ip6_getpmtu(ro_pmtu, ro, ifp, &finaldst, &mtu);
if (error == 0) {
#else
#ifdef ND_IFINFO
mtu = ND_IFINFO(ifp)->linkmtu;
#else
mtu = nd_ifinfo[ifp->if_index].linkmtu;
#endif
#endif
if (m0->m_pkthdr.len <= mtu)
error = nd6_output(ifp, fin->fin_ifp, m0,