diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-03-04 06:47:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-03-04 06:47:10 +0000 |
commit | 9db95664d104089e059e1110bd4936cb8375ff26 (patch) | |
tree | ad09573b7494a677e409713fff80f9bed96d8553 /packet-ieee80211.c | |
parent | 9a57223addead8c42ff2c9b98c88aa68d5f670fe (diff) |
When deciding whether we have enough data in a lower-level packet to
attempt reassembly of a higher-level packet that includes the
lower-level packet, use "tvb_bytes_exist()" to check whether all the
data that's to be included in the reassembly is available, rather than
by checking whether the packet is short.
Add some checks of that sort that were missing.
Use the reported length of the packet when doing reassembly.
Make the "iphdrlen" field of a "packet_info" structure be the length of
the IP header in bytes, not in 4-byte words.
svn path=/trunk/; revision=7274
Diffstat (limited to 'packet-ieee80211.c')
-rw-r--r-- | packet-ieee80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ieee80211.c b/packet-ieee80211.c index 3d111245ee..d01c6dc1ff 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.82 2003/02/18 21:29:51 guy Exp $ + * $Id: packet-ieee80211.c,v 1.83 2003/03/04 06:47:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1759,7 +1759,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo, wlan_fragment_table, wlan_reassembled_table, frag_number, - len, + reported_len, more_frags); if (fd_head != NULL) { /* |