aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-pipe.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-27 04:27:05 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-27 04:27:05 +0000
commit588c50944de744c40f127a52519e1e5aef8d83a5 (patch)
tree8924bfb6fae808780d2d8d36ffd53261749ec67b /packet-smb-pipe.c
parent31cf9563c236737b2edc397f0bd4369e2f30cc05 (diff)
In the protocol tree entries for lists of fragments/segments, make the
top-level item correspond to the reassembled data, and make the item for each fragment/segment correspond to the part of that reassembled data that came from that fragment/segment. svn path=/trunk/; revision=5025
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r--packet-smb-pipe.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c
index ed88de56be..5cc1020465 100644
--- a/packet-smb-pipe.c
+++ b/packet-smb-pipe.c
@@ -8,7 +8,7 @@ XXX Fixme : shouldnt show [malformed frame] for long packets
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
- * $Id: packet-smb-pipe.c,v 1.71 2002/03/16 04:39:28 sahlberg Exp $
+ * $Id: packet-smb-pipe.c,v 1.72 2002/03/27 04:27:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -3203,11 +3203,13 @@ dissect_pipe_dcerpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree
d_tvb=new_tvb;
/* list what segments we have */
- it = proto_tree_add_text(tree, d_tvb, 0, 0, "Fragments");
+ it = proto_tree_add_text(tree, d_tvb, 0, -1, "Fragments");
tr = proto_item_add_subtree(it, ett_smb_pipe_fragments);
for(fd=fd_head->next;fd;fd=fd->next){
- proto_tree_add_text(tr, d_tvb, 0, 0, "Frame:%u Data:%u-%u",
- fd->frame, fd->offset, fd->offset+fd->len-1);
+ proto_tree_add_text(tr, d_tvb, fd->offset, fd->len,
+ "Frame:%u Data:%u-%u",
+ fd->frame, fd->offset,
+ fd->offset+fd->len-1);
}
}
}