diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:28:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:28:46 +0000 |
commit | b6248efe1f55980c46777eceb5e649c7d363ba99 (patch) | |
tree | dc0a06db5ed72cddd6638e31294b98bee8ee3237 /packet-ieee80211.c | |
parent | 4d3f77c65cdbe91e0a9946454d211ee3f4261552 (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.
svn path=/trunk/; revision=2863
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 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 */ |