diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-02-12 01:50:28 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-02-12 09:52:50 +0000 |
commit | 6a3762576b88e5ecbd1ce1019d40b96c6dd1da1d (patch) | |
tree | 350eb6cc9d1ed9d2959f77484bb027da1bcfc420 /epan | |
parent | e2c92fa99ea7b8d94b347d62316b22f7df83b924 (diff) |
Add a comment about wired-to-little-endian fields.
Other fields in the Prism header are in the same byte order as the magic
number; if the host generating those fields is big-endian, are these
fields little-endian or big-endian?
Change-Id: Ieb857db3ea63a673d9224cb2a7be3ff2bfb5861c
Reviewed-on: https://code.wireshark.org/review/20065
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-ieee80211-prism.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ieee80211-prism.c b/epan/dissectors/packet-ieee80211-prism.c index c32840bffb..e442a5f5fe 100644 --- a/epan/dissectors/packet-ieee80211-prism.c +++ b/epan/dissectors/packet-ieee80211-prism.c @@ -837,6 +837,10 @@ dissect_prism(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U case PRISM_TYPE1_RATE_SIG_A1: case PRISM_TYPE2_RATE_SIG_A1: + /* + * XXX - always little-endian, or same byte order as the + * rest of the Prism header? + */ rate_phy1 = tvb_get_letohl(tvb, offset); if (tree) { proto_tree_add_item(prism_did_tree, hf_ieee80211_prism_did_sig_a1, tvb, offset, 4, byte_order); @@ -846,6 +850,10 @@ dissect_prism(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U case PRISM_TYPE1_RATE_SIG_A2: case PRISM_TYPE2_RATE_SIG_A2: + /* + * XXX - always little-endian, or same byte order as the + * rest of the Prism header? + */ rate_phy2 = tvb_get_letohl(tvb, offset); if (tree) { proto_tree_add_item(prism_did_tree, hf_ieee80211_prism_did_sig_a2, tvb, offset, 4, byte_order); |