diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 07:03:14 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-26 07:03:14 +0000 |
commit | 949a2bbeddb31a198c54769ee65c101f6ad47b4d (patch) | |
tree | 59c3a63e1d36e8b8ea9bad6b7d2917dca1196232 /packet-sctp.c | |
parent | 2f58f481f974bd191a58f9651ef121368f9465ed (diff) |
Note that the SCTP CRC-32c is not the same as the AUTODIN/HDLC/802.x
CRC, as it uses a different polynomial.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8270 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sctp.c')
-rw-r--r-- | packet-sctp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packet-sctp.c b/packet-sctp.c index 8c0dfd91dc..7db432ca43 100644 --- a/packet-sctp.c +++ b/packet-sctp.c @@ -12,7 +12,7 @@ * - support for reassembly * - error checking mode * - * $Id: packet-sctp.c,v 1.60 2003/08/06 07:17:58 guy Exp $ + * $Id: packet-sctp.c,v 1.61 2003/08/26 07:03:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -339,6 +339,14 @@ sctp_adler32(const unsigned char* buf, unsigned int len) /* The CRC32C code is taken from draft-ietf-tsvwg-sctpcsum-01.txt. * That code is copyrighted by D. Otis and has been modified. + * + * Polynomial is + * + * x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + + * x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + 1 + * + * Note that this is not the AUTODIN/HDLC/802.x CRC - it uses a different + * polynomial. */ #define CRC32C(c,d) (c=(c>>8)^crc_c[(c^(d))&0xFF]) |