aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/msg_res_cmd.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-05 01:00:06 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-05 01:00:06 +0000
commitef8009abe3327a460c028cd81258b6590974f2a8 (patch)
tree502b5a72f83e524f032991e17a8f1bf71d9942c0 /plugins/wimax/msg_res_cmd.c
parent799578fb29a901adef58f6792b01c3e580fb577a (diff)
Use ENC_NA as encoding for proto_tree_add_item() calls which directly reference an hf item (in hf[] with types:
FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|1|0|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39262
Diffstat (limited to 'plugins/wimax/msg_res_cmd.c')
-rw-r--r--plugins/wimax/msg_res_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wimax/msg_res_cmd.c b/plugins/wimax/msg_res_cmd.c
index e89396f189..aa5a4b0c4d 100644
--- a/plugins/wimax/msg_res_cmd.c
+++ b/plugins/wimax/msg_res_cmd.c
@@ -94,7 +94,7 @@ void dissect_mac_mgmt_msg_res_cmd_decoder(tvbuff_t *tvb, packet_info *pinfo, pro
if(tlv_type == -1 || tlv_len > MAX_TLV_LEN || tlv_len < 1)
{ /* invalid tlv info */
col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, "RES-CMD TLV error");
- proto_tree_add_item(res_cmd_tree, hf_res_cmd_invalid_tlv, tvb, offset, (tvb_len - offset), FALSE);
+ proto_tree_add_item(res_cmd_tree, hf_res_cmd_invalid_tlv, tvb, offset, (tvb_len - offset), ENC_NA);
break;
}
/* get the TLV value offset */
@@ -120,7 +120,7 @@ void dissect_mac_mgmt_msg_res_cmd_decoder(tvbuff_t *tvb, packet_info *pinfo, pro
default:
/* display the unknown tlv in hex */
tlv_tree = add_tlv_subtree(&tlv_info, ett_mac_mgmt_msg_res_cmd_decoder, res_cmd_tree, hf_res_cmd_unknown_type, tvb, offset, tlv_len, FALSE);
- proto_tree_add_item(tlv_tree, hf_res_cmd_unknown_type, tvb, offset, tlv_len, FALSE);
+ proto_tree_add_item(tlv_tree, hf_res_cmd_unknown_type, tvb, offset, tlv_len, ENC_NA);
break;
}
offset += tlv_len;