diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-08-26 06:18:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-08-26 06:18:18 +0000 |
commit | b73e8138a8456cdc0e3b40fb6d0ac25a47eb6602 (patch) | |
tree | 19dbd5781994835a4360c76337d44eb96bb9d12f /crc32.h | |
parent | cdd8b24d5c8d9e2cd685a2491d14d3fce7c13fc0 (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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |