diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-06 16:50:13 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-06 16:50:13 +0000 |
commit | e2996ceabe94206aae66b54caac53c7e35cb325d (patch) | |
tree | d377a635fd6375bfcf6aa79b35eb0df20984cc0c /asn1/idmp | |
parent | 594f1efcdd976386dcdd918a11271d353af76270 (diff) |
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 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=39294
Diffstat (limited to 'asn1/idmp')
-rw-r--r-- | asn1/idmp/packet-idmp-template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/idmp/packet-idmp-template.c b/asn1/idmp/packet-idmp-template.c index 3c9b98b46a..9b63394343 100644 --- a/asn1/idmp/packet-idmp-template.c +++ b/asn1/idmp/packet-idmp-template.c @@ -180,10 +180,10 @@ static void dissect_idmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_t /* now check the segment fields */ - proto_tree_add_item(tree, hf_idmp_version, tvb, offset, 1, FALSE); offset++; + proto_tree_add_item(tree, hf_idmp_version, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; proto_tree_add_item(tree, hf_idmp_final, tvb, offset, 1, FALSE); idmp_final = tvb_get_guint8(tvb, offset); offset++; - proto_tree_add_item(tree, hf_idmp_length, tvb, offset, 4, FALSE); + proto_tree_add_item(tree, hf_idmp_length, tvb, offset, 4, ENC_BIG_ENDIAN); idmp_length = tvb_get_ntohl(tvb, offset); offset += 4; if(idmp_reassemble) { |