aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee80211.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-22 08:12:11 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-22 08:12:11 +0000
commitb3c464723c4292eb31a11c8e20c9850db8683702 (patch)
tree06a84e393f4bffee21a8c370416ab4ab064f52b5 /packet-ieee80211.c
parent210a722eca49300f048d4059592eb8e60c8f692b (diff)
Allow the 802.11 management-frame protocol to be disabled.
Don't bother doing the WEP processing and child-tvbuff construction for frames other than management and data frames, as they have no payload to be WEP-encrypted or dissected. svn path=/trunk/; revision=3600
Diffstat (limited to 'packet-ieee80211.c')
-rw-r--r--packet-ieee80211.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/packet-ieee80211.c b/packet-ieee80211.c
index 2359927047..09727c5b86 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.35 2001/06/22 07:46:25 guy Exp $
+ * $Id: packet-ieee80211.c,v 1.36 2001/06/22 08:12:11 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -780,6 +780,8 @@ dissect_ieee80211_mgt (guint16 fcf, tvbuff_t * tvb, packet_info * pinfo,
guint32 next_len;
int tagged_parameter_tree_len;
+ CHECK_DISPLAY_AS_DATA(proto_wlan_mgt, tvb, pinfo, tree);
+
if (tree)
{
ti = proto_tree_add_item (tree, proto_wlan_mgt, tvb, 0, tvb_length(tvb), FALSE);
@@ -1333,6 +1335,24 @@ dissect_ieee80211 (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
}
/*
+ * Only management and data frames have a body, so we don't have
+ * anything more to do for other types of frames.
+ */
+ switch (COOK_FRAME_TYPE (fcf))
+ {
+
+ case MGT_FRAME:
+ case DATA_FRAME:
+ break;
+
+ default:
+ return;
+ }
+
+ /*
+ * For WEP-encrypted frames, dissect the WEP parameters and
+ * display the payload as data.
+ *
* XXX - allow the key to be specified, and, if it is, decrypt
* the payload and dissect it?
*/