From a268b29164b24eaff97efc8fc57a8e7e71c1ce54 Mon Sep 17 00:00:00 2001 From: krj Date: Sat, 15 Aug 2009 06:38:10 +0000 Subject: This patch introduces packet_add_new_data_source() which effectively deprecates add_new_data_source(). This is based on the following observation: 1) The tvb + name (aka. data_source) is only used when the protocol tree is visible The current implementation of add_new_data_source() doesn't take this into account and simply allocates a data_source regardless. This is what packet_add_new_data_source() tries to rectify. A couple of dissectors have already been switched over to the new packet_add_new_data_source(). Many are still missing. Help appreciated! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29427 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-bthci_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-bthci_acl.c') diff --git a/epan/dissectors/packet-bthci_acl.c b/epan/dissectors/packet-bthci_acl.c index df4878802b..5a1ccb3bf3 100644 --- a/epan/dissectors/packet-bthci_acl.c +++ b/epan/dissectors/packet-bthci_acl.c @@ -212,7 +212,7 @@ dissect_btacl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } if(mfp && mfp->last_frame==pinfo->fd->num){ next_tvb = tvb_new_child_real_data(tvb, (guint8*)mfp->reassembled, mfp->tot_len, mfp->tot_len); - add_new_data_source(pinfo, next_tvb, "Reassembled BTHCI ACL"); + packet_add_new_data_source(pinfo, btacl_tree, next_tvb, "Reassembled BTHCI ACL"); /* call L2CAP dissector */ if(btl2cap_handle){ -- cgit v1.2.3