diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index 0e3a2e0b8fc..abf3983c60d 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -463,13 +463,13 @@ passout: * calculate it for us, do it here. */ if (__predict_false(m->m_pkthdr.csum_flags & CSUM_DELAY_DATA & - ~nh->nh_ifp->if_hwassist)) { + ~nifp->if_hwassist)) { in_delayed_cksum(m); m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; } #if defined(SCTP) || defined(SCTP_SUPPORT) if (__predict_false(m->m_pkthdr.csum_flags & CSUM_IP_SCTP & - ~nh->nh_ifp->if_hwassist)) { + ~nifp->if_hwassist)) { sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2)); m->m_pkthdr.csum_flags &= ~CSUM_IP_SCTP; } diff --git a/sys/netinet6/ip6_fastfwd.c b/sys/netinet6/ip6_fastfwd.c index bae0fa0951c..b8deea3ead0 100644 --- a/sys/netinet6/ip6_fastfwd.c +++ b/sys/netinet6/ip6_fastfwd.c @@ -279,7 +279,7 @@ passout: * calculate it for us, do it here. */ if (__predict_false(m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6 & - ~nh->nh_ifp->if_hwassist)) { + ~nifp->if_hwassist)) { int offset = ip6_lasthdr(m, 0, IPPROTO_IPV6, NULL); if (offset < sizeof(struct ip6_hdr) || offset > m->m_pkthdr.len) @@ -289,7 +289,7 @@ passout: } #if defined(SCTP) || defined(SCTP_SUPPORT) if (__predict_false(m->m_pkthdr.csum_flags & CSUM_IP6_SCTP & - ~nh->nh_ifp->if_hwassist)) { + ~nifp->if_hwassist)) { int offset = ip6_lasthdr(m, 0, IPPROTO_IPV6, NULL); sctp_delayed_cksum(m, offset); diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c index 62b7f629146..d6a1d41ca00 100644 --- a/sys/netinet6/ip6_forward.c +++ b/sys/netinet6/ip6_forward.c @@ -403,7 +403,7 @@ pass: * calculate it for us, do it here. */ if (__predict_false(m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6 & - ~nh->nh_ifp->if_hwassist)) { + ~ifp->if_hwassist)) { int offset = ip6_lasthdr(m, 0, IPPROTO_IPV6, NULL); if (offset < sizeof(struct ip6_hdr) || offset > m->m_pkthdr.len) @@ -413,7 +413,7 @@ pass: } #if defined(SCTP) || defined(SCTP_SUPPORT) if (__predict_false(m->m_pkthdr.csum_flags & CSUM_IP6_SCTP & - ~nh->nh_ifp->if_hwassist)) { + ~ifp->if_hwassist)) { int offset = ip6_lasthdr(m, 0, IPPROTO_IPV6, NULL); sctp_delayed_cksum(m, offset);