diff options
author | Michael Mann <mmann78@netscape.net> | 2013-09-16 10:39:06 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-09-16 10:39:06 +0000 |
commit | 346f803d42ac477109e02df2578eb8c86ccf4c4f (patch) | |
tree | 4277e1e48aeb6d492ceb835af645460070fb04ec /epan/dissectors/packet-isakmp.c | |
parent | 58e4750ecbf593fb678c713da398979b7fb2ed5d (diff) |
Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if hf_ field name is the first part of the formatted string. This was all manual inspection and most cases were either:
1. Case sensitivity differences between hf_ field name and formatted string.
2. Unnecessary whitespace between hf_ field name and colon in formatted string
There are cases where the hf_ field name doesn't quite match the proto_tree_add_uint_format, but it's close enough that one of them should be "right", I'm just not sure which is, I just know the string in proto_tree_add_uint_format is the one displayed.
svn path=/trunk/; revision=52098
Diffstat (limited to 'epan/dissectors/packet-isakmp.c')
-rw-r--r-- | epan/dissectors/packet-isakmp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 3e4a64af58..c34136e6dc 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -3523,23 +3523,23 @@ _U_ transform_id = tvb_get_guint8(tvb, offset); switch (protocol_id) { case 1: /* ISAKMP */ - proto_tree_add_uint_format(tree, hf_isakmp_trans_id, tvb, offset, 1, - transform_id, "Transform ID: %s (%u)", + proto_tree_add_uint_format_value(tree, hf_isakmp_trans_id, tvb, offset, 1, + transform_id, "%s (%u)", val_to_str_const(transform_id, vs_v1_trans_isakmp, "UNKNOWN-TRANS-TYPE"), transform_id); break; case 2: /* AH */ - proto_tree_add_uint_format(tree, hf_isakmp_trans_id, tvb, offset, 1, - transform_id, "Transform ID: %s (%u)", + proto_tree_add_uint_format_value(tree, hf_isakmp_trans_id, tvb, offset, 1, + transform_id, "%s (%u)", val_to_str_const(transform_id, vs_v1_trans_ah, "UNKNOWN-AH-TRANS-TYPE"), transform_id); break; case 3: /* ESP */ - proto_tree_add_uint_format(tree, hf_isakmp_trans_id, tvb, offset, 1, - transform_id, "Transform ID: %s (%u)", + proto_tree_add_uint_format_value(tree, hf_isakmp_trans_id, tvb, offset, 1, + transform_id, "%s (%u)", val_to_str_const(transform_id, vs_v1_trans_esp, "UNKNOWN-ESP-TRANS-TYPE"), transform_id); break; case 4: /* IPCOMP */ - proto_tree_add_uint_format(tree, hf_isakmp_trans_id, tvb, offset, 1, - transform_id, "Transform ID: %s (%u)", + proto_tree_add_uint_format_value(tree, hf_isakmp_trans_id, tvb, offset, 1, + transform_id, "%s (%u)", val_to_str_const(transform_id, transform_id_ipcomp, "UNKNOWN-IPCOMP-TRANS-TYPE"), transform_id); break; default: |