use ND_IFINFO().
This commit is contained in:
parent
2925fa2283
commit
11e6ffbea3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user