aboutsummaryrefslogtreecommitdiffstats
path: root/crc32.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-08-26 06:18:18 +0000
committerGuy Harris <guy@alum.mit.edu>2003-08-26 06:18:18 +0000
commitb73e8138a8456cdc0e3b40fb6d0ac25a47eb6602 (patch)
tree19dbd5781994835a4360c76337d44eb96bb9d12f /crc32.h
parentcdd8b24d5c8d9e2cd685a2491d14d3fce7c13fc0 (diff)
Make the CRC-32 routines take a tvbuff and a length as arguments.
Rename "crc32()" so as not to collide with the one in zlib; rename "crc32_802()" to match. svn path=/trunk/; revision=8268
Diffstat (limited to 'crc32.h')
-rw-r--r--crc32.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/crc32.h b/crc32.h
index 67ee24be7e..a28d6ef7f7 100644
--- a/crc32.h
+++ b/crc32.h
@@ -1,7 +1,7 @@
/* crc32.h
* Declaration of CRC-32 routine and table
*
- * $Id: crc32.h,v 1.2 2003/08/26 05:52:43 guy Exp $
+ * $Id: crc32.h,v 1.3 2003/08/26 06:18:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -26,6 +26,6 @@
extern const guint32 crc32_table[256];
-extern guint32 crc32(const unsigned char* buf, unsigned int len);
-extern guint32 crc32_802(const unsigned char* buf, unsigned int len);
+extern guint32 crc32_tvb(tvbuff_t *tvb, unsigned int len);
+extern guint32 crc32_tvb_802(tvbuff_t *tvb, unsigned int len);