summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_crc32.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2010-08-29 18:50:30 +0000
committertuexen <tuexen@FreeBSD.org>2010-08-29 18:50:30 +0000
commitff0f13be619dafe05ca0a216f79368d4c793a420 (patch)
treec683856a6c329e114bb11002250dfde16a196871 /sys/netinet/sctp_crc32.h
parentc7313507efc899f693f73ecc1b97b23563178ad5 (diff)
downloadFreeBSD-src-ff0f13be619dafe05ca0a216f79368d4c793a420.zip
FreeBSD-src-ff0f13be619dafe05ca0a216f79368d4c793a420.tar.gz
Fix the the SCTP_WITH_NO_CSUM option when used in combination with
interface supporting CRC offload. While at it, make use of the feature that the loopback interface provides CRC offloading. MFC after: 4 weeks
Diffstat (limited to 'sys/netinet/sctp_crc32.h')
-rw-r--r--sys/netinet/sctp_crc32.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h
index e66815e..eb7a1bc 100644
--- a/sys/netinet/sctp_crc32.h
+++ b/sys/netinet/sctp_crc32.h
@@ -36,11 +36,12 @@ __FBSDID("$FreeBSD$");
#ifndef __crc32c_h__
#define __crc32c_h__
-#if defined(_KERNEL) || defined(__Userspace__)
-
+#if defined(_KERNEL)
+#if !defined(SCTP_WITH_NO_CSUM)
uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t);
+
+#endif
void sctp_delayed_cksum(struct mbuf *, uint32_t offset);
#endif /* _KERNEL */
-
#endif /* __crc32c_h__ */
OpenPOWER on IntegriCloud