Ethereal-dev: [Ethereal-dev] tcp_dissect_pdus() doesn't work properly

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Sofia Altieri" <sofiaaltieri@xxxxxxxxxxx>
Date: Wed, 19 Apr 2006 14:20:48 +0000
Hello List,

I'm using tcp_dissect_pdus() to reassemble TCP fragments. It seems to work fine, that is, it shows me:

- my proto packet containing the'link' to its completing TCP fragment.
- It separates those packets not aligned to the TCP frags.

Now, I would like to be shown the reassembled packet. What I do is setting the TCP preference "Allow subdissector to reassemble...." and it *apparently* works because the reassembled tvbuff is *bigger* than expected because it contains the portion of my_proto packet belonging to my next proto packet.

I've enclosed a text file to clear you things up

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://www.ilovemessenger.msn.it/
+-------------------------+      +--------------------------------+
| myproto Header1| data.. |      |..data   | myproto Header2| data|
+-------------------------+      +--------------------------------+

      	TCP1					TCP2


Using tcp_dissect_pdus ()

1 - myproto Packet1 [link to 2]

2 - TCP [containing ONLY Packet1's data ]

3 - myproto Packet2

...


After setting "Allow subdissector to reassemble..."

1 - TCP [Reassembled in 2]

2 - myproto Packet1 [containing all TCP2!]

3 - my_proto Packet2

...