Correct the field lengths for the segmentation parameter (fixes the highlighting in the byte pane).

svn path=/trunk/; revision=26229
This commit is contained in:
Jeff Morriss 2008-09-19 12:17:32 +00:00
parent aac8e0d91d
commit ad10542235
1 changed files with 5 additions and 7 deletions

View File

@ -1659,13 +1659,11 @@ dissect_sccp_segmentation_param(tvbuff_t *tvb, proto_tree *tree, guint length)
sccp_parameter_values, "Unknown")); sccp_parameter_values, "Unknown"));
param_tree = proto_item_add_subtree(param_item, ett_sccp_segmentation); param_tree = proto_item_add_subtree(param_item, ett_sccp_segmentation);
proto_tree_add_uint(param_tree, hf_sccp_segmentation_first, tvb, 0, length, proto_tree_add_uint(param_tree, hf_sccp_segmentation_first, tvb, 0, 1, first);
first); proto_tree_add_uint(param_tree, hf_sccp_segmentation_class, tvb, 0, 1, class);
proto_tree_add_uint(param_tree, hf_sccp_segmentation_class, tvb, 0, length, proto_tree_add_uint(param_tree, hf_sccp_segmentation_remaining, tvb, 0, 1,
class); remaining);
proto_tree_add_uint(param_tree, hf_sccp_segmentation_remaining, tvb, 0, proto_tree_add_uint(param_tree, hf_sccp_segmentation_slr, tvb, 1, length-1,
length, remaining);
proto_tree_add_uint(param_tree, hf_sccp_segmentation_slr, tvb, 1, length,
slrx); slrx);
} }