summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-btl2cap.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-15 06:38:10 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-15 06:38:10 +0000
commit7d442624064b470be60a976c9d9ae06069458aac (patch)
treea46ff02b744f06032eaef2a29c3777ff4d894226 /epan/dissectors/packet-btl2cap.c
parent3beae5944f126dbaa9a08a9e31cb07b68eac5296 (diff)
downloadwireshark-7d442624064b470be60a976c9d9ae06069458aac.tar.gz
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! svn path=/trunk/; revision=29427
Diffstat (limited to 'epan/dissectors/packet-btl2cap.c')
-rw-r--r--epan/dissectors/packet-btl2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btl2cap.c b/epan/dissectors/packet-btl2cap.c
index 95aeee9c4e..004d1f7786 100644
--- a/epan/dissectors/packet-btl2cap.c
+++ b/epan/dissectors/packet-btl2cap.c
@@ -934,7 +934,7 @@ static void dissect_i_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
if(segment == 0x02 && 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 L2CAP");
+ packet_add_new_data_source(pinfo, btl2cap_tree, next_tvb, "Reassembled L2CAP");
}
/*pass up to higher layer if we have a complete packet*/
if(segment == 0x00) {