aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee80211.c
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 /packet-ieee80211.c
parentcdd8b24d5c8d9e2cd685a2491d14d3fce7c13fc0 (diff)
downloadwireshark-b73e8138a8456cdc0e3b40fb6d0ac25a47eb6602.tar.gz
wireshark-b73e8138a8456cdc0e3b40fb6d0ac25a47eb6602.tar.bz2
wireshark-b73e8138a8456cdc0e3b40fb6d0ac25a47eb6602.zip
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 'packet-ieee80211.c')
-rw-r--r--packet-ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ieee80211.c b/packet-ieee80211.c
index 97dfb7bd1e..d44b232c77 100644
--- a/packet-ieee80211.c
+++ b/packet-ieee80211.c
@@ -3,7 +3,7 @@
* Copyright 2000, Axis Communications AB
* Inquiries/bugreports should be sent to Johan.Jorgensen@axis.com
*
- * $Id: packet-ieee80211.c,v 1.94 2003/08/26 05:52:48 guy Exp $
+ * $Id: packet-ieee80211.c,v 1.95 2003/08/26 06:18:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1686,7 +1686,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
reported_len -= 4;
if (tree)
{
- guint32 fcs = crc32_802(tvb_get_ptr(tvb, 0, hdr_len + len), hdr_len + len);
+ guint32 fcs = crc32_tvb_802(tvb, hdr_len + len);
guint32 sent_fcs = tvb_get_ntohl(tvb, hdr_len + len);
if (fcs == sent_fcs)
proto_tree_add_uint_format(hdr_tree, hf_fcs, tvb,