diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-15 06:38:10 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-08-15 06:38:10 +0000 |
commit | 7d442624064b470be60a976c9d9ae06069458aac (patch) | |
tree | a46ff02b744f06032eaef2a29c3777ff4d894226 /epan/reassemble.c | |
parent | 3beae5944f126dbaa9a08a9e31cb07b68eac5296 (diff) | |
download | wireshark-7d442624064b470be60a976c9d9ae06069458aac.tar.gz wireshark-7d442624064b470be60a976c9d9ae06069458aac.tar.bz2 wireshark-7d442624064b470be60a976c9d9ae06069458aac.zip |
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/reassemble.c')
-rw-r--r-- | epan/reassemble.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/reassemble.c b/epan/reassemble.c index 471651a179..086910307e 100644 --- a/epan/reassemble.c +++ b/epan/reassemble.c @@ -1836,7 +1836,7 @@ process_reassembled_data(tvbuff_t *tvb, int offset, packet_info *pinfo, tvb_set_child_real_data_tvbuff(tvb, next_tvb); /* Add the defragmented data to the data source list. */ - add_new_data_source(pinfo, next_tvb, name); + packet_add_new_data_source(pinfo, tree, next_tvb, name); /* show all fragments */ if (fd_head->flags & FD_BLOCKSEQUENCE) { |