summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ipfilter
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-17 20:20:14 +0000
committerume <ume@FreeBSD.org>2003-10-17 20:20:14 +0000
commita5d2658456e6c201ec840141342ff45c7b4cc138 (patch)
tree92343160a3a3270837be8a3208ade77fffb1791a /sys/contrib/ipfilter
parentce5d62e853d45b03a2b4b63389a3323647677951 (diff)
downloadFreeBSD-src-a5d2658456e6c201ec840141342ff45c7b4cc138.zip
FreeBSD-src-a5d2658456e6c201ec840141342ff45c7b4cc138.tar.gz
use ND_IFINFO().
Diffstat (limited to 'sys/contrib/ipfilter')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.c4
1 files changed, 4 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud