diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-29 03:31:58 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-29 10:33:01 +0000 |
commit | e3f49280deb11a7055083634fbbc4d8416fce024 (patch) | |
tree | 8e0e552844f4e96d20780f4b17465ca0f935366d /epan/dissectors/packet-ixveriwave.c | |
parent | cc9b38a734ac64603e78fe2dc00ad5bdc214e3ff (diff) |
Fix some field type errors.
Don't add FT_BOOLEAN and FT_NONE fields with proto_tree_add_uint().
Change-Id: I3c89aa161775fc639e6a7306282b55649a3c473a
Reviewed-on: https://code.wireshark.org/review/21406
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ixveriwave.c')
-rw-r--r-- | epan/dissectors/packet-ixveriwave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ixveriwave.c b/epan/dissectors/packet-ixveriwave.c index cde3724ea3..489b6240a3 100644 --- a/epan/dissectors/packet-ixveriwave.c +++ b/epan/dissectors/packet-ixveriwave.c @@ -1007,8 +1007,8 @@ dissect_ixveriwave(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da if (tree) { rfid = tvb_get_guint8(tvb, offset); - vwrft = proto_tree_add_uint(common_tree, hf_radiotap_rf_info, - tvb, offset, 76, rfid); + vwrft = proto_tree_add_item(common_tree, hf_radiotap_rf_info, + tvb, offset, 76, ENC_NA); proto_item_append_text(vwrft, " (RFID = %u)",rfid); vw_rfinfo_tree = proto_item_add_subtree(vwrft, ett_radiotap_rf); @@ -2068,7 +2068,7 @@ wlantap_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree if (plcp_type) proto_tree_add_uint(vw_l1info_tree, hf_radiotap_nss, tvb, offset, 1, nss); - proto_tree_add_uint(vw_l1info_tree, hf_radiotap_vwf_txf, tvb, offset, 1, direction); + proto_tree_add_boolean(vw_l1info_tree, hf_radiotap_vwf_txf, tvb, offset, 1, direction); offset++; /* New pieces of lines for |