Fix the build after r353458.

MFC with:	r353458
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-10-13 00:08:17 +00:00
parent 9f15304d32
commit bff630d1dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353460

View File

@ -103,6 +103,10 @@ __FBSDID("$FreeBSD$");
#include <netinet6/scope6_var.h>
#endif /* INET6 */
#ifdef SCTP
#include <netinet/sctp_crc32.h>
#endif
#include <machine/in_cksum.h>
#include <security/mac/mac_framework.h>
@ -5589,7 +5593,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
}
#ifdef SCTP
if (m0->m_pkthdr.csum_flags & CSUM_SCTP & ~ifp->if_hwassist) {
sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2));
sctp_delayed_cksum(m0, (uint32_t)(ip->ip_hl << 2));
m0->m_pkthdr.csum_flags &= ~CSUM_SCTP;
}
#endif