aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-umts_fp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2007-10-23 11:02:08 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2007-10-23 11:02:08 +0000
commitb40d397b1690391f5e8338542af898d120340ca3 (patch)
tree3f7075cb2d0c306e66be5515ededb153067330ca /epan/dissectors/packet-umts_fp.c
parent1950ffc2141ffdb7a0b8ec8291b0bf99ac12d9d6 (diff)
Make groups of PDUs filterable as large FT_BYTES items
(where the initial length isn't readily available when item is first added) Note that this still won't work where an initial length of 0 is given for the item that will later be extended using proto_item_set_len(), as the pointer value part of the zero-length array will reamin NULL... svn path=/trunk/; revision=23253
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r--epan/dissectors/packet-umts_fp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 038482d201..509121d4f0 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -378,7 +378,7 @@ int dissect_tb_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if (tree)
{
/* Add data subtree */
- tree_ti = proto_tree_add_item(tree, hf_fp_data, tvb, offset, 0, FALSE);
+ tree_ti = proto_tree_add_item(tree, hf_fp_data, tvb, offset, -1, FALSE);
proto_item_set_text(tree_ti, "TB data for %u chans", p_fp_info->num_chans);
data_tree = proto_item_add_subtree(tree_ti, ett_fp_data);
}
@@ -458,7 +458,7 @@ int dissect_macd_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* Add data subtree */
if (tree)
{
- pdus_ti = proto_tree_add_item(tree, hf_fp_data, tvb, offset, 0, FALSE);
+ pdus_ti = proto_tree_add_item(tree, hf_fp_data, tvb, offset, -1, FALSE);
proto_item_set_text(pdus_ti, "%u MAC-d PDUs of %u bits", number_of_pdus, length);
data_tree = proto_item_add_subtree(pdus_ti, ett_fp_data);
}