diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2019-06-05 16:28:10 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-06-09 05:06:36 +0000 |
commit | b69328ac22d64ca6042326947fe29af0497593fb (patch) | |
tree | 1724c4845a1730a381f378061af026bd99330eb6 /epan/dissectors/packet-wisun.c | |
parent | e1a57c61f9c5a59e58965a20fe05bdaa2a3590d9 (diff) |
wisun: fix swapping between Channel Spacing and Reserved fields
Issue reported by Gene Falendysz
Bug: 15821
Change-Id: I272061a1cabdae905a89d7b568eb3be51dabd293
Reviewed-on: https://code.wireshark.org/review/33501
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wisun.c')
-rw-r--r-- | epan/dissectors/packet-wisun.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-wisun.c b/epan/dissectors/packet-wisun.c index 5a850a2ea2..37891b9f4a 100644 --- a/epan/dissectors/packet-wisun.c +++ b/epan/dissectors/packet-wisun.c @@ -72,8 +72,8 @@ static reassembly_table netricity_reassembly_table; #define WISUN_CHANNEL_EXCLUDE_MASK 2 #define WISUN_CH_PLAN_EXPLICIT_FREQ 0x00ffffff -#define WISUN_CH_PLAN_EXPLICIT_RESERVED 0x0f000000 -#define WISUN_CH_PLAN_EXPLICIT_SPACING 0xf0000000 +#define WISUN_CH_PLAN_EXPLICIT_RESERVED 0xf0000000 +#define WISUN_CH_PLAN_EXPLICIT_SPACING 0x0f000000 #define WISUN_EAPOL_RELAY_UDP_PORT 10253 @@ -634,8 +634,8 @@ dissect_wisun_schedule_common(tvbuff_t *tvb, packet_info *pinfo, guint offset, p static const int * fields_usie_channel_plan_explicit[] = { &hf_wisun_usie_explicit_frequency, - &hf_wisun_usie_explicit_reserved, &hf_wisun_usie_explicit_spacing, + &hf_wisun_usie_explicit_reserved, NULL }; gint count; @@ -666,7 +666,7 @@ dissect_wisun_schedule_common(tvbuff_t *tvb, packet_info *pinfo, guint offset, p ti = proto_tree_add_bitmask(tree, tvb, offset, hf_wisun_usie_explicit, ett_wisun_usie_explicit, fields_usie_channel_plan_explicit, ENC_LITTLE_ENDIAN); offset += 3; - if (tvb_get_guint8(tvb, offset) & 0x0f) { + if (tvb_get_guint8(tvb, offset) & 0xf0) { expert_add_info(pinfo, ti, &ei_wisun_usie_explicit_reserved_bits_not_zero); } offset++; |