diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-06 03:35:44 +0000 |
commit | 4e57694d4aa2a652077e01fd6867a8def7ffdb15 (patch) | |
tree | 0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-rmcp.c | |
parent | aae5eb7de0e2fd5a257d143852b832039ebb171e (diff) |
Convert 'encoding' parameter of certain proto_tree_add_item() calls in non-autogenerated epan/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=39288
Diffstat (limited to 'epan/dissectors/packet-rmcp.c')
-rw-r--r-- | epan/dissectors/packet-rmcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-rmcp.c b/epan/dissectors/packet-rmcp.c index eda373477a..e9e6d6f408 100644 --- a/epan/dissectors/packet-rmcp.c +++ b/epan/dissectors/packet-rmcp.c @@ -123,8 +123,8 @@ dissect_rmcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) class_str); rmcp_tree = proto_item_add_subtree(ti, ett_rmcp); - proto_tree_add_item(rmcp_tree, hf_rmcp_version, tvb, 0, 1, TRUE); - proto_tree_add_item(rmcp_tree, hf_rmcp_sequence, tvb, 2, 1, TRUE); + proto_tree_add_item(rmcp_tree, hf_rmcp_version, tvb, 0, 1, ENC_LITTLE_ENDIAN); + proto_tree_add_item(rmcp_tree, hf_rmcp_sequence, tvb, 2, 1, ENC_LITTLE_ENDIAN); tf = proto_tree_add_text(rmcp_tree, tvb, 3, 1, "Type: %s, Class: %s", val_to_str(type, rmcp_type_vals, "Unknown (0x%02x)"), @@ -132,8 +132,8 @@ dissect_rmcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) field_tree = proto_item_add_subtree(tf, ett_rmcp_typeclass); - proto_tree_add_item(field_tree, hf_rmcp_class, tvb, 3, 1, TRUE); - proto_tree_add_item(field_tree, hf_rmcp_type, tvb, 3, 1, TRUE); + proto_tree_add_item(field_tree, hf_rmcp_class, tvb, 3, 1, ENC_LITTLE_ENDIAN); + proto_tree_add_item(field_tree, hf_rmcp_type, tvb, 3, 1, ENC_LITTLE_ENDIAN); } if (!type){ /* do not expect a data block for an ACK */ @@ -166,9 +166,9 @@ dissect_rsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) "RMCP Security-extension Protocol"); rsp_tree = proto_item_add_subtree(ti, ett_rsp); - proto_tree_add_item(rsp_tree, hf_rsp_session_id, tvb, offset, 4, FALSE); + proto_tree_add_item(rsp_tree, hf_rsp_session_id, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; - proto_tree_add_item(rsp_tree, hf_rsp_sequence, tvb, offset, 4, FALSE); + proto_tree_add_item(rsp_tree, hf_rsp_sequence, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4; } |