aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wtp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-02-18 01:08:44 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-02-18 01:08:44 +0000
commitbb3f0a432664e181ad2177d79fa9b26254cb6280 (patch)
tree73281bb2d7e50e8527da2945d5627a31bae9e5c6 /packet-wtp.c
parent9a4e4616534196c2034337ef2a0c2e93d583d2f1 (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-wtp.c')
-rw-r--r--packet-wtp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-wtp.c b/packet-wtp.c
index 99f796d2f3..da2ab4f712 100644
--- a/packet-wtp.c
+++ b/packet-wtp.c
@@ -2,7 +2,7 @@
*
* Routines to dissect WTP component of WAP traffic.
*
- * $Id: packet-wtp.c,v 1.26 2002/01/21 07:36:47 guy Exp $
+ * $Id: packet-wtp.c,v 1.27 2002/02/18 01:08:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -523,10 +523,10 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
wsp_tvb = tvb_new_real_data(fd_head->data,
fd_head->len,
- fd_head->len,
- "Reassembled");
+ fd_head->len);
tvb_set_child_real_data_tvbuff(tvb, wsp_tvb);
- pinfo->fd->data_src = g_slist_append(pinfo->fd->data_src, wsp_tvb);
+ add_new_data_source(pinfo->fd, wsp_tvb,
+ "Reassembled");
pinfo->fragmented = FALSE;
call_dissector(wsp_handle, wsp_tvb, pinfo, tree);
}