aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-08-08 12:51:32 -0700
committerGuy Harris <guy@alum.mit.edu>2014-08-08 19:52:08 +0000
commit479e2881f85d835982292d3b4a5dd9c144eecc7a (patch)
tree67b741235bbb92dbe85d7173994a94ba2e84e940 /wsutil
parentcf5f0d3827f761325059996b879a5876f8513926 (diff)
The "MPEG-2" CRC-32 is also the ATM CRC-32.
Use it in the ATM dissector, and use a tvbuff version, so that we don't do tvb_get_ptr() ourselves. Change-Id: I0bd3594bc739e0cca447ac06f34a471441cf2e70 Reviewed-on: https://code.wireshark.org/review/3513 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/crc32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wsutil/crc32.c b/wsutil/crc32.c
index 549705c125..142a457f44 100644
--- a/wsutil/crc32.c
+++ b/wsutil/crc32.c
@@ -179,6 +179,8 @@ static const guint32 crc32_ccitt_table[256] = {
* x^7 + x^5 + x^4 + x^2 + x + 1
*
* (which is the same polynomial as the one above us).
+ *
+ * NOTE: this is also used for ATM AAL5.
*/
static const guint32 crc32_mpeg2_table[256] = {
0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b,