aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-aim-location.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-22 03:10:30 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-09-22 03:10:30 +0000
commit74d58a645ac1b7dea28fa765961570ac90b96882 (patch)
tree65569699040f312fa6b9083fa6336dfc9c23faea /epan/dissectors/packet-aim-location.c
parent9ca7eed116631bd44e801549e2d59e6b595e5674 (diff)
Use ENC_ values in proto_tree_add_item() calls.
In the AgentX dissector, make the "flags" arguments guint8, to match what's passed in. In the AIM dissector, use val_to_str() in col_add_str() calls - it gives the same result if there's a match, and puts a note in the Info column if there isn't, and is less complicated. In the AJP13 dissector: update the URL for the protocol documentation; add #defines for message types, and use them; for "enumerated data type" fields, make the fields numerical rather than strings and give them the value_string tables; get rid of col_check() calls; make a Boolean item an FT_BOOLEAN. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39085 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-aim-location.c')
-rw-r--r--epan/dissectors/packet-aim-location.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-aim-location.c b/epan/dissectors/packet-aim-location.c
index d3e1ed4e2f..9032e0133f 100644
--- a/epan/dissectors/packet-aim-location.c
+++ b/epan/dissectors/packet-aim-location.c
@@ -129,16 +129,16 @@ static int dissect_aim_snac_location_request_user_information(tvbuff_t *tvb,
/* Info Type */
proto_tree_add_item(tree, hf_aim_snac_location_request_user_info_infotype,
- tvb, offset, 2, FALSE);
+ tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
/* Buddy Name length */
buddyname_length = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(tree, hf_aim_buddyname_len, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_aim_buddyname_len, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
/* Buddy name */
- proto_tree_add_item(tree, hf_aim_buddyname, tvb, offset, buddyname_length, FALSE);
+ proto_tree_add_item(tree, hf_aim_buddyname, tvb, offset, buddyname_length, ENC_ASCII|ENC_BIG_ENDIAN);
offset += buddyname_length;
return offset;
@@ -153,15 +153,15 @@ static int dissect_aim_snac_location_user_information(tvbuff_t *tvb,
/* Buddy Name length */
buddyname_length = tvb_get_guint8(tvb, offset);
- proto_tree_add_item(tree, hf_aim_buddyname_len, tvb, offset, 1, FALSE);
+ proto_tree_add_item(tree, hf_aim_buddyname_len, tvb, offset, 1, ENC_BIG_ENDIAN);
offset += 1;
/* Buddy name */
- proto_tree_add_item(tree, hf_aim_buddyname, tvb, offset, buddyname_length, FALSE);
+ proto_tree_add_item(tree, hf_aim_buddyname, tvb, offset, buddyname_length, ENC_ASCII|ENC_BIG_ENDIAN);
offset += buddyname_length;
/* Warning level */
- proto_tree_add_item(tree, hf_aim_userinfo_warninglevel, tvb, offset, 2, FALSE);
+ proto_tree_add_item(tree, hf_aim_userinfo_warninglevel, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
offset = dissect_aim_tlv_list(tvb, pinfo, offset, tree, aim_onlinebuddy_tlvs);