diff options
author | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2013-11-29 19:40:51 +0000 |
---|---|---|
committer | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2013-11-29 19:40:51 +0000 |
commit | 96ce490f3ebc81331e405868bb82a8bf75c11317 (patch) | |
tree | 54af7b2332e3f3c3bd8e7c31b882f81912988770 | |
parent | ddb7d0f25975baaf9fb63dcd5b881b1b11d16b82 (diff) | |
download | usrsctplib-96ce490f3ebc81331e405868bb82a8bf75c11317.tar.gz |
sctp_delayed_checksum() is only used in the FreeBSD kernel.
This issue was reported by Andrew Galante.
git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk/KERN/usrsctp/usrsctplib@8731 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
-rwxr-xr-x | netinet/sctp_crc32.c | 2 | ||||
-rwxr-xr-x | netinet/sctp_crc32.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/netinet/sctp_crc32.c b/netinet/sctp_crc32.c index 0a39d7a..b994aaa 100755 --- a/netinet/sctp_crc32.c +++ b/netinet/sctp_crc32.c @@ -785,6 +785,7 @@ sctp_calculate_cksum(struct mbuf *m, uint32_t offset) #endif /* !defined(SCTP_WITH_NO_CSUM) */ +#if defined(__FreeBSD__) void sctp_delayed_cksum(struct mbuf *m, uint32_t offset) { @@ -813,4 +814,5 @@ sctp_delayed_cksum(struct mbuf *m, uint32_t offset) *(uint32_t *) (m->m_data + offset) = checksum; #endif } +#endif diff --git a/netinet/sctp_crc32.h b/netinet/sctp_crc32.h index 24eb541..2cc14f4 100755 --- a/netinet/sctp_crc32.h +++ b/netinet/sctp_crc32.h @@ -42,7 +42,9 @@ __FBSDID("$FreeBSD: head/sys/netinet/sctp_crc32.h 235828 2012-05-23 11:26:28Z tu #if !defined(SCTP_WITH_NO_CSUM) uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); #endif +#if defined(__FreeBSD__) void sctp_delayed_cksum(struct mbuf *, uint32_t offset); +#endif #endif /* _KERNEL */ #if defined(__Userspace__) #if !defined(SCTP_WITH_NO_CSUM) |