summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-clnp.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-26 23:13:43 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-26 23:13:43 +0000
commit3fd0d6cb08e3e473b1a18f158581236447f358bc (patch)
treee1541ea8dbc4c9f74797b69dc00c24c0035dbc23 /epan/dissectors/packet-clnp.c
parent00a6b757ac4f2677cc995de54f4d10cc0be8171a (diff)
downloadwireshark-3fd0d6cb08e3e473b1a18f158581236447f358bc.tar.gz
show the list of reassembled COTP fragments as a toplevel tree item and show it only at the last packet (not in every packet involved)
svn path=/trunk/; revision=15547
Diffstat (limited to 'epan/dissectors/packet-clnp.c')
-rw-r--r--epan/dissectors/packet-clnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-clnp.c b/epan/dissectors/packet-clnp.c
index 53a4df34ee..b7c734cf32 100644
--- a/epan/dissectors/packet-clnp.c
+++ b/epan/dissectors/packet-clnp.c
@@ -1006,7 +1006,7 @@ static int ositp_decode_DT(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu,
cotp_reassembled_table,
fragment_length, fragment);
if (fd_head) {
- if (fd_head->next) {
+ if (fd_head->next && !fragment) {
/* This is the last packet */
reassembled_tvb = tvb_new_real_data(fd_head->data,
fd_head->len,
@@ -1016,7 +1016,7 @@ static int ositp_decode_DT(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu,
show_fragment_seq_tree(fd_head,
&cotp_frag_items,
- cotp_tree,
+ tree,
pinfo, reassembled_tvb, &ti);
pinfo->fragmented = fragment;
next_tvb = reassembled_tvb;