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-idp.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-idp.c')
-rw-r--r-- | epan/dissectors/packet-idp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-idp.c b/epan/dissectors/packet-idp.c index cad8837b40..5691752eb4 100644 --- a/epan/dissectors/packet-idp.c +++ b/epan/dissectors/packet-idp.c @@ -94,27 +94,27 @@ dissect_idp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) idp_tree = proto_item_add_subtree(ti, ett_idp); } - proto_tree_add_item(idp_tree, hf_idp_checksum, tvb, 0, 2, FALSE); + proto_tree_add_item(idp_tree, hf_idp_checksum, tvb, 0, 2, ENC_BIG_ENDIAN); length = tvb_get_ntohs(tvb, 2); proto_tree_add_uint_format(idp_tree, hf_idp_len, tvb, 2, 2, length, "Length: %u bytes", length); /* Adjust the tvbuff length to include only the IDP datagram. */ set_actual_length(tvb, length); - proto_tree_add_item(idp_tree, hf_idp_hops, tvb, 4, 1, FALSE); + proto_tree_add_item(idp_tree, hf_idp_hops, tvb, 4, 1, ENC_BIG_ENDIAN); type = tvb_get_guint8(tvb, 5); proto_tree_add_uint(idp_tree, hf_idp_packet_type, tvb, 5, 1, type); pinfo->ptype = PT_IDP; /* Destination */ - proto_tree_add_item(idp_tree, hf_idp_dnet, tvb, 6, 4, FALSE); + proto_tree_add_item(idp_tree, hf_idp_dnet, tvb, 6, 4, ENC_BIG_ENDIAN); proto_tree_add_item(idp_tree, hf_idp_dnode, tvb, 10, 6, FALSE); pinfo->destport = tvb_get_ntohs(tvb, 16); proto_tree_add_uint(idp_tree, hf_idp_dsocket, tvb, 16, 2, pinfo->destport); /* Source */ - proto_tree_add_item(idp_tree, hf_idp_snet, tvb, 18, 4, FALSE); + proto_tree_add_item(idp_tree, hf_idp_snet, tvb, 18, 4, ENC_BIG_ENDIAN); proto_tree_add_item(idp_tree, hf_idp_snode, tvb, 22, 6, FALSE); pinfo->srcport = tvb_get_ntohs(tvb, 28); proto_tree_add_uint(idp_tree, hf_idp_ssocket, tvb, 28, 2, |