aboutsummaryrefslogtreecommitdiffstats
path: root/reassemble.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-04-24 06:46:04 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-04-24 06:46:04 +0000
commit9bc2597c4172249abf4dc00e8f91dc1b44d1fe7f (patch)
tree13911417980f19d71505a9f8424d244d0abe222b /reassemble.c
parent392239fd8631aca01767b3284a18d10b3e512540 (diff)
add fragment length output to the payload output
svn path=/trunk/; revision=10680
Diffstat (limited to 'reassemble.c')
-rw-r--r--reassemble.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/reassemble.c b/reassemble.c
index ce825be46b..034f9c5e0c 100644
--- a/reassemble.c
+++ b/reassemble.c
@@ -1,7 +1,7 @@
/* reassemble.c
* Routines for {fragment,segment} reassembly
*
- * $Id: reassemble.c,v 1.45 2003/12/22 02:25:03 guy Exp $
+ * $Id: reassemble.c,v 1.46 2004/04/24 06:46:04 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1563,10 +1563,11 @@ show_fragment(fragment_data *fd, int offset, const fragment_items *fit,
fei = proto_tree_add_uint_format(ft, hf,
tvb, offset, fd->len,
fd->frame,
- "Frame: %u, payload: %u-%u",
+ "Frame: %u, payload: %u-%u (%u bytes)",
fd->frame,
offset,
- offset+fd->len-1);
+ offset+fd->len-1,
+ fd->len);
fet = proto_item_add_subtree(fei, *(fit->ett_fragment));
if (fd->flags&FD_OVERLAP) {
proto_tree_add_boolean(fet,
@@ -1597,10 +1598,11 @@ show_fragment(fragment_data *fd, int offset, const fragment_items *fit,
proto_tree_add_uint_format(ft, *(fit->hf_fragment),
tvb, offset, fd->len,
fd->frame,
- "Frame: %u, payload: %u-%u",
+ "Frame: %u, payload: %u-%u (%u bytes)",
fd->frame,
offset,
- offset+fd->len-1
+ offset+fd->len-1,
+ fd->len
);
}
}