aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mndp.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2011-08-26 17:02:33 +0000
committerJörg Mayer <jmayer@loplof.de>2011-08-26 17:02:33 +0000
commit18735eaba54a23da33da5dd33dffecdf9340452e (patch)
treec1af08f356c9ce0bb18c7e1c1ac34e9d295fb067 /epan/dissectors/packet-mndp.c
parente0645e724c63c956ddac4a50a5b2d29c3800c002 (diff)
Replace TRUE/FALSE with the new ENCAP stuff where appropriate
svn path=/trunk/; revision=38746
Diffstat (limited to 'epan/dissectors/packet-mndp.c')
-rw-r--r--epan/dissectors/packet-mndp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/dissectors/packet-mndp.c b/epan/dissectors/packet-mndp.c
index e06d4c44ae..2dbbd85249 100644
--- a/epan/dissectors/packet-mndp.c
+++ b/epan/dissectors/packet-mndp.c
@@ -168,13 +168,13 @@ dissect_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *mndp_tree,
tlv_tree = proto_item_add_subtree(tlv_item,
ett_mndp_tlv_header);
type_item = proto_tree_add_item(tlv_tree, hf_mndp_tlv_type,
- tvb, offset, 2, FALSE);
+ tvb, offset, 2, ENC_BIG_ENDIAN);
proto_item_append_text(type_item, " = %s",
extval_to_str_idx(tlv_type, value_array,
&type_index, "Unknown"));
offset += 2;
proto_tree_add_item(tlv_tree, hf_mndp_tlv_length,
- tvb, offset, 2, FALSE);
+ tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
/* tlv_length -= 4; */
@@ -185,6 +185,7 @@ dissect_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *mndp_tree,
tlv_end = offset + tlv_length;
/* Make hf_ handling independent of specialfuncion */
+ /* FIXME: Properly handle encoding info */
if ( type_index != -1
&& !value_array[type_index].specialfunction
&& value_array[type_index].evs != NULL
@@ -199,7 +200,7 @@ dissect_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *mndp_tree,
tvb, offset, tlv_length, encoding_info);
} else {
proto_tree_add_item(tlv_tree, hf_mndp_tlv_data,
- tvb, offset, tlv_length, FALSE);
+ tvb, offset, tlv_length, ENC_BIG_ENDIAN);
}
if ( type_index != -1 && value_array[type_index].specialfunction ) {
guint32 newoffset;
@@ -231,14 +232,14 @@ dissect_mndp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree) {
/* Header dissection */
ti = proto_tree_add_item(tree, proto_mndp, tvb, offset, -1,
- FALSE);
+ ENC_BIG_ENDIAN);
mndp_tree = proto_item_add_subtree(ti, ett_mndp);
proto_tree_add_item(mndp_tree, hf_mndp_header_unknown, tvb, offset, 2,
- FALSE);
+ ENC_BIG_ENDIAN);
offset += 2;
proto_tree_add_item(mndp_tree, hf_mndp_header_seqno, tvb, offset, 2,
- FALSE);
+ ENC_BIG_ENDIAN);
offset += 2;
while (offset < packet_length)