diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-06-16 13:31:10 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-06-16 20:31:42 +0000 |
commit | 8ab033a2838ee94879910fd3ab9860122a72f151 (patch) | |
tree | c0c05bb09aeca5ea96b0d5d76db2220e167a69cb /epan/dissectors | |
parent | d217b757cb1c627e53d9cffe47fa5f47c38045de (diff) | |
download | wireshark-8ab033a2838ee94879910fd3ab9860122a72f151.tar.gz |
Further cleanup.
Move some commented-out code where it belonged, and #if 0 it out
instead.
Have only *one* test for OCTO.
Change-Id: I6e8803f936ebd88f1705b2185f034ec0b2bddb77
Reviewed-on: https://code.wireshark.org/review/22177
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-ixveriwave.c | 74 |
1 files changed, 24 insertions, 50 deletions
diff --git a/epan/dissectors/packet-ixveriwave.c b/epan/dissectors/packet-ixveriwave.c index bbf86ef25e..5fd0fd0081 100644 --- a/epan/dissectors/packet-ixveriwave.c +++ b/epan/dissectors/packet-ixveriwave.c @@ -2116,6 +2116,20 @@ wlantap_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree_add_uint_format_value(tap_tree, hf_radiotap_vw_ht_length, tvb, offset, 2, vw_ht_length, "%u (includes the sum of the pieces of the aggregate and their respective Start_Spacing + Delimiter + MPDU + Padding)", vw_ht_length); +#if 0 + if (plcp_type == PLCP_TYPE_VHT_MIXED) + { + proto_tree_add_uint_format(tap_tree, hf_radiotap_vw_ht_length, + tvb, offset, 2, vw_ht_length, "VHT length: %u (includes the sum of the pieces of the aggregate and their respective Start_Spacing + Delimiter + MPDU + Padding)", + vw_ht_length); + } + else + { + proto_tree_add_uint_format(tap_tree, hf_radiotap_vw_ht_length, + tvb, offset, 2, vw_ht_length, "HT length: %u (includes the sum of the pieces of the aggregate and their respective Start_Spacing + Delimiter + MPDU + Padding)", + vw_ht_length); + } +#endif } offset += 2; @@ -2237,6 +2251,16 @@ wlantap_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, decode_vht_sig(tap_tree, tvb, offset, &phdr); } } + + /* Grab the rest of the frame. */ + if (plcp_type == PLCP_TYPE_VHT_MIXED) { + length = length + 17; /*** 16 bytes of PLCP + 1 byte of L1InfoC(UserPos) **/ + } + + next_tvb = tvb_new_subset_remaining(tvb, length); + + /* dissect the 802.11 radio informaton and header next */ + call_dissector_with_data(ieee80211_radio_handle, next_tvb, pinfo, tree, &phdr); } else { /* @@ -2884,57 +2908,7 @@ wlantap_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (vwl2l4t && log_mode) proto_item_append_text(vwl2l4t, " (Reduced)"); - } -/* - align_offset = ALIGN_OFFSET(offset, 2); - offset += align_offset; - vw_ht_length = tvb_get_letohs(tvb, offset); - if ((tree) && (vw_ht_length != 0)) - if (plcp_type == PLCP_TYPE_VHT_MIXED) - { - proto_tree_add_uint_format(tap_tree, hf_radiotap_vw_ht_length, - tvb, offset, 2, vw_ht_length, "VHT length: %u (includes the sum of the pieces of the aggregate and their respective Start_Spacing + Delimiter + MPDU + Padding)", - vw_ht_length); - } - else - { - proto_tree_add_uint_format(tap_tree, hf_radiotap_vw_ht_length, - tvb, offset, 2, vw_ht_length, "HT length: %u (includes the sum of the pieces of the aggregate and their respective Start_Spacing + Delimiter + MPDU + Padding)", - vw_ht_length); - } - offset +=2; - - align_offset = ALIGN_OFFSET(offset, 2); - offset += align_offset;*/ - - /* vw_info grabbed in the beginning of the dissector */ - - - /*** POPULATE THE AMSDU VHT MIXED MODE CONTAINER FORMAT ***/ - /**** - if (vw_ht_length != 0) - ***/ - /*** - else { - offset = offset + 17; - } - ***/ - - if (!is_octo) - { - /* Grab the rest of the frame. */ - if (plcp_type == PLCP_TYPE_VHT_MIXED) { - length = length + 17; /*** 16 bytes of PLCP + 1 byte of L1InfoC(UserPos) **/ - } - - next_tvb = tvb_new_subset_remaining(tvb, length); - - /* dissect the 802.11 radio informaton and header next */ - call_dissector_with_data(ieee80211_radio_handle, next_tvb, pinfo, tree, &phdr); - } - else - { if (cmd_type != 4) proto_item_set_len(tap_tree, length + OCTO_TIMESTAMP_FIELDS_LEN); else |