diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-02-18 01:08:44 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-02-18 01:08:44 +0000 |
commit | bb3f0a432664e181ad2177d79fa9b26254cb6280 (patch) | |
tree | 73281bb2d7e50e8527da2945d5627a31bae9e5c6 /packet-ipv6.c | |
parent | 9a4e4616534196c2034337ef2a0c2e93d583d2f1 (diff) |
Don't give tvbuffs names; instead, give data sources names, where a
"data source" has a name and a top-level tvbuff, and frames can have a
list of data sources associated with them.
Use the tvbuff pointer to determine which data source is the data source
for a given field; this means we don't have to worry about multiple data
sources with the same name - the only thing the name does is label the
notebook tab for the display of the data source, and label the hex dump
of the data source in print/Tethereal output.
Clean up a bunch of things discovered in the process of doing the above.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4749 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ipv6.c')
-rw-r--r-- | packet-ipv6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ipv6.c b/packet-ipv6.c index 798e6f368a..df0eb402e4 100644 --- a/packet-ipv6.c +++ b/packet-ipv6.c @@ -1,7 +1,7 @@ /* packet-ipv6.c * Routines for IPv6 packet disassembly * - * $Id: packet-ipv6.c,v 1.76 2002/02/17 00:51:19 guy Exp $ + * $Id: packet-ipv6.c,v 1.77 2002/02/18 01:08:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -893,7 +893,7 @@ again: /* Allocate a new tvbuff, referring to the reassembled payload. */ next_tvb = tvb_new_real_data(ipfd_head->data, ipfd_head->datalen, - ipfd_head->datalen, "Reassembled"); + ipfd_head->datalen); /* Add the tvbuff to the list of tvbuffs to which the tvbuff we were handed refers, so it'll get cleaned up when that tvbuff @@ -901,7 +901,7 @@ again: tvb_set_child_real_data_tvbuff(tvb, next_tvb); /* Add the defragmented data to the data source list. */ - pinfo->fd->data_src = g_slist_append(pinfo->fd->data_src, next_tvb); + add_new_data_source(pinfo->fd, next_tvb, "Reassembled"); /* It's not fragmented. */ pinfo->fragmented = FALSE; |