From 02065b0981f85eff9d84ca42546809ee6319bd20 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Thu, 6 Oct 2011 14:46:34 +0000 Subject: Convert 'encoding' parameter of certain proto_tree_add_item() calls in plugin dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39292 --- plugins/wimax/msg_dsc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/wimax/msg_dsc.c') diff --git a/plugins/wimax/msg_dsc.c b/plugins/wimax/msg_dsc.c index 87e518ea65..e66677945f 100644 --- a/plugins/wimax/msg_dsc.c +++ b/plugins/wimax/msg_dsc.c @@ -87,11 +87,11 @@ void dissect_mac_mgmt_msg_dsc_req_decoder(tvbuff_t *tvb, packet_info *pinfo, pro dsc_tree = proto_item_add_subtree(dsc_item, ett_mac_mgmt_msg_dsc_req_decoder); /* Decode and display the Uplink Channel Descriptor (UCD) */ /* display the Message Type */ - proto_tree_add_item(dsc_tree, hf_dsc_req_message_type, tvb, offset, 1, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_req_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); /* move to next field */ offset++; /* display the Transaction ID */ - proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, ENC_BIG_ENDIAN); /* move to next field */ offset += 2; /* process DSC REQ message TLV Encode Information */ @@ -122,15 +122,15 @@ void dissect_mac_mgmt_msg_dsc_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, pro dsc_tree = proto_item_add_subtree(dsc_item, ett_mac_mgmt_msg_dsc_rsp_decoder); /* Decode and display the Uplink Channel Descriptor (UCD) */ /* display the Message Type */ - proto_tree_add_item(dsc_tree, hf_dsc_rsp_message_type, tvb, offset, 1, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_rsp_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); /* move to next field */ offset++; /* display the Transaction ID */ - proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, ENC_BIG_ENDIAN); /* move to next field */ offset += 2; /* display the Confirmation Code */ - proto_tree_add_item(dsc_tree, hf_dsc_confirmation_code, tvb, offset, 1, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_confirmation_code, tvb, offset, 1, ENC_BIG_ENDIAN); /* move to next field */ offset++; /* process DSC RSP message TLV Encode Information */ @@ -161,15 +161,15 @@ void dissect_mac_mgmt_msg_dsc_ack_decoder(tvbuff_t *tvb, packet_info *pinfo, pro dsc_tree = proto_item_add_subtree(dsc_item, ett_mac_mgmt_msg_dsc_ack_decoder); /* Decode and display the Uplink Channel Descriptor (UCD) */ /* display the Message Type */ - proto_tree_add_item(dsc_tree, hf_dsc_ack_message_type, tvb, offset, 1, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_ack_message_type, tvb, offset, 1, ENC_BIG_ENDIAN); /* move to next field */ offset++; /* display the Transaction ID */ - proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_transaction_id, tvb, offset, 2, ENC_BIG_ENDIAN); /* move to next field */ offset += 2; /* display the Confirmation Code */ - proto_tree_add_item(dsc_tree, hf_dsc_confirmation_code, tvb, offset, 1, FALSE); + proto_tree_add_item(dsc_tree, hf_dsc_confirmation_code, tvb, offset, 1, ENC_BIG_ENDIAN); /* move to next field */ offset++; /* process DSC ACK message TLV Encode Information */ -- cgit v1.2.3