aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee80211.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-10 23:28:46 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-10 23:28:46 +0000
commit5d11fb4d2b142380e12a41e6b027f51ce17a9a71 (patch)
treedc0a06db5ed72cddd6638e31294b98bee8ee3237 /packet-ieee80211.c
parentc44bd0e0395b0b792ac291aa5676b46ff44528ab (diff)
The frame control field is, I infer from "dissect_ieee80211()",
little-endian, so "capture_ieee80211()" should use "pletohs()", not "pntohs()", to fetch it. Also, "pletohs()" takes a *pointer* to the object to be fetched as an argument. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2863 f5534014-38df-0310-8fa8-9805f1628bb7
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 9f32b6cb94..e242e8bd15 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.9 2001/01/09 06:31:36 guy Exp $
+ * $Id: packet-ieee80211.c,v 1.10 2001/01/10 23:28:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -302,7 +302,7 @@ capture_ieee80211 (const u_char * pd, int offset, packet_counts * ld)
{
guint16 fcf, hdr_length;
- fcf = pntohs (*((guint *) pd));
+ fcf = pletohs (&pd[0]);
hdr_length = MGT_FRAME_HDR_LEN; /* Set the header length of the frame */