diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-10 00:53:55 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-10 00:53:55 +0000 |
commit | 91d59218a9a9ab0d982ce7413c9be1127c1c12ec (patch) | |
tree | 0791e55414488e7f3723174aad9925a549659cd9 /plugins/docsis/packet-docsis.c | |
parent | a22559941fee1c629c118c45c98358c121937ffd (diff) |
Convert 'encoding' parameter of certain proto_tree_add_item() calls in plugins/*:
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_BOOLEAN
FT_IPv4
FT_EUI64
FT_GUID
FT_UINT_STRING
Also: For type FT_ITv6 use ENC_NA. (This was missed in an earlier SVN)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39329 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/docsis/packet-docsis.c')
-rw-r--r-- | plugins/docsis/packet-docsis.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/docsis/packet-docsis.c b/plugins/docsis/packet-docsis.c index 7e5796fd08..29f7640211 100644 --- a/plugins/docsis/packet-docsis.c +++ b/plugins/docsis/packet-docsis.c @@ -240,9 +240,9 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag) proto_tree_add_item (ehdr_tree, hf_docsis_ehdr_ver, tvb, pos + 1, 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_bpi_en, tvb, pos + 2, 1, - FALSE); + ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_toggle_bit, tvb, pos + 2, - 1, FALSE); + 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_sid, tvb, pos + 2, 2, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_mini_slots, tvb, pos + 4, @@ -252,9 +252,9 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag) proto_tree_add_item (ehdr_tree, hf_docsis_frag_rsvd, tvb, pos+5, 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_frag_first, tvb, pos+5, - 1, FALSE); + 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_frag_last, tvb, pos+5, - 1, FALSE); + 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_frag_seq, tvb, pos+5, 1, FALSE); } @@ -265,9 +265,9 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag) proto_tree_add_item (ehdr_tree, hf_docsis_ehdr_ver, tvb, pos + 1, 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_bpi_en, tvb, pos + 2, 1, - FALSE); + ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_toggle_bit, tvb, pos + 2, - 1, FALSE); + 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_said, tvb, pos + 2, 2, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_reserved, tvb, pos + 4, 1, @@ -287,7 +287,7 @@ dissect_ehdr (tvbuff_t * tvb, proto_tree * tree, gboolean isfrag) if (len == 2) { - proto_tree_add_item (ehdr_tree, hf_docsis_ehdr_qind, tvb, pos+2, 1, FALSE); + proto_tree_add_item (ehdr_tree, hf_docsis_ehdr_qind, tvb, pos+2, 1, ENC_BIG_ENDIAN); proto_tree_add_item (ehdr_tree, hf_docsis_ehdr_grants, tvb, pos+2, 1, ENC_BIG_ENDIAN); } break; @@ -411,7 +411,7 @@ dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_tree_add_item (docsis_tree, hf_docsis_fcparm, tvb, 0, 1, ENC_BIG_ENDIAN); proto_tree_add_item (docsis_tree, hf_docsis_ehdron, tvb, 0, 1, - FALSE); + ENC_BIG_ENDIAN); if (ehdron == 0x01) { proto_tree_add_item (docsis_tree, hf_docsis_ehdrlen, tvb, 1, 1, @@ -436,7 +436,7 @@ dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) proto_tree_add_item (docsis_tree, hf_docsis_machdr_fcparm, tvb, 0, 1, ENC_BIG_ENDIAN); proto_tree_add_item (docsis_tree, hf_docsis_ehdron, tvb, 0, 1, - FALSE); + ENC_BIG_ENDIAN); /* Decode for a Request Frame. No extended header */ if (fcparm == 0x02) { |