diff options
Diffstat (limited to 'freebsd/sys/netpfil/pf/pf.c')
-rw-r--r-- | freebsd/sys/netpfil/pf/pf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/freebsd/sys/netpfil/pf/pf.c b/freebsd/sys/netpfil/pf/pf.c index 4f9da55b..6bc1b8c8 100644 --- a/freebsd/sys/netpfil/pf/pf.c +++ b/freebsd/sys/netpfil/pf/pf.c @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include <rtems/bsd/local/opt_inet6.h> #include <rtems/bsd/local/opt_bpf.h> #include <rtems/bsd/local/opt_pf.h> +#include <rtems/bsd/local/opt_sctp.h> #include <sys/param.h> #include <sys/bus.h> @@ -105,6 +106,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> @@ -5601,7 +5606,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 |