diff --git a/sys/contrib/ipfilter/netinet/ip_fil.c b/sys/contrib/ipfilter/netinet/ip_fil.c index a0f685743481..61c4cebb3148 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil.c +++ b/sys/contrib/ipfilter/netinet/ip_fil.c @@ -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,