From a5d2658456e6c201ec840141342ff45c7b4cc138 Mon Sep 17 00:00:00 2001 From: ume Date: Fri, 17 Oct 2003 20:20:14 +0000 Subject: use ND_IFINFO(). --- sys/contrib/ipfilter/netinet/ip_fil.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') diff --git a/sys/contrib/ipfilter/netinet/ip_fil.c b/sys/contrib/ipfilter/netinet/ip_fil.c index a0f6857..61c4ceb 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil.c +++ b/sys/contrib/ipfilter/netinet/ip_fil.c @@ -2018,8 +2018,12 @@ frdest_t *fdp; 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, dst6, ro->ro_rt); -- cgit v1.1