This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I'm working on a Wireshark dissector plugin (C-based) to process some network data. The protocol that is being used over TCP is one where we can't know the complete length of a response from a header field, so I need to use the desegment_offset/desegment_length pinfo fields (which I guess tcp_dissect_pdus uses anyway).

Anyhow, this works fine until the network stream has some dup acks resulting in a TCP Fast Retransmission in the middle of the stream. At this point we get the retransmitted data in our dissector again, and lose any context of the previous desegmentation. In other words, after the retransmitted packet we get what should be the packet after the packet that came before the retransmit, but we don't get the data back from that previous packet, so the desegmentation is hosed. Not sure if that is clear or not, but I can't think of a better way to explain it off the top.

So, does anybody know of any elegant way to handle this situation?

asked 07 Mar '11, 00:54

krippy2k's gravatar image

krippy2k
1112
accept rate: 0%


There has been some improvements in the (very) recent Wireshark development code base. Please have a look if this addresses your concerns.

permanent link

answered 07 Mar '11, 04:28

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Thanks for the response. I have checked out the latest source from SVN and added the dissector and stepped through it with a debugger, but at first glance I can't see any noticeable difference. I will keep digging.

(07 Mar '11, 07:49) krippy2k
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×637
×2

question asked: 07 Mar '11, 00:54

question was seen: 3,301 times

last updated: 07 Mar '11, 07:49

p​o​w​e​r​e​d by O​S​Q​A