aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sua.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2005-03-18 14:32:41 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2005-03-18 14:32:41 +0000
commitdb21ed4e2d0768e0fac02b1735008e01861df712 (patch)
treef26abd833b40eca4c6a296aa20e8aff8bd9ff74e /epan/dissectors/packet-sua.c
parent5233758ae47bca2df76622510a1dbf5d86c31218 (diff)
From Jeff Morris: display protocol class at parameter level.
svn path=/trunk/; revision=13800
Diffstat (limited to 'epan/dissectors/packet-sua.c')
-rw-r--r--epan/dissectors/packet-sua.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-sua.c b/epan/dissectors/packet-sua.c
index 9bfa9cf872..ea1941d14c 100644
--- a/epan/dissectors/packet-sua.c
+++ b/epan/dissectors/packet-sua.c
@@ -1026,7 +1026,7 @@ static const true_false_string return_on_error_bit_value = {
};
static void
-dissect_protocol_class_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_tree)
+dissect_protocol_class_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_tree, proto_item *parameter_item)
{
proto_item *protocol_class_item;
proto_tree *protocol_class_tree;
@@ -1038,6 +1038,7 @@ dissect_protocol_class_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_
proto_tree_add_item(protocol_class_tree, hf_return_on_error_bit, parameter_tvb, PROTOCOL_CLASS_OFFSET, PROTOCOL_CLASS_LENGTH, NETWORK_BYTE_ORDER);
proto_tree_add_item(protocol_class_tree, hf_protocol_class, parameter_tvb, PROTOCOL_CLASS_OFFSET, PROTOCOL_CLASS_LENGTH, NETWORK_BYTE_ORDER);
+ proto_item_append_text(parameter_item, " (%d)", tvb_get_guint8(parameter_tvb, PROTOCOL_CLASS_OFFSET) & PROTOCOL_CLASS_MASK);
}
#define SEQUENCE_CONTROL_LENGTH 4
@@ -1437,7 +1438,7 @@ dissect_v8_parameter(tvbuff_t *parameter_tvb, proto_tree *tree, tvbuff_t **data_
dissect_message_priority_parameter(parameter_tvb, parameter_tree, parameter_item);
break;
case V8_PROTOCOL_CLASS_PARAMETER_TAG:
- dissect_protocol_class_parameter(parameter_tvb, parameter_tree);
+ dissect_protocol_class_parameter(parameter_tvb, parameter_tree, parameter_item);
break;
case V8_SEQUENCE_CONTROL_PARAMETER_TAG:
dissect_sequence_control_parameter(parameter_tvb, parameter_tree, parameter_item);
@@ -1722,7 +1723,7 @@ dissect_parameter(tvbuff_t *parameter_tvb, proto_tree *tree, tvbuff_t **data_tvb
dissect_message_priority_parameter(parameter_tvb, parameter_tree, parameter_item);
break;
case PROTOCOL_CLASS_PARAMETER_TAG:
- dissect_protocol_class_parameter(parameter_tvb, parameter_tree);
+ dissect_protocol_class_parameter(parameter_tvb, parameter_tree, parameter_item);
break;
case SEQUENCE_CONTROL_PARAMETER_TAG:
dissect_sequence_control_parameter(parameter_tvb, parameter_tree, parameter_item);