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

I am making a dissector that calculates the remaining length of a stream, and decodes it in as many groups of 11 bytes as possible. However, whenever it decodes the last couple of bytes I get an error saying malformed packets.

This does not happen when the last possible 11 byte group ends and there are 6 or so bytes left over.

The packets that I am testing this on I had created using a custom packet building program. So I'm wondering if this malformed packet message is due to me creating bad packets or if you are just unable to decode the last couple bits in a stream.

asked 07 Aug '12, 07:41

bball2601's gravatar image

bball2601
16567
accept rate: 50%


I figured it out. It was just a mistake in the creation of my packet.

permanent link

answered 07 Aug '12, 08:30

bball2601's gravatar image

bball2601
16567
accept rate: 50%

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:

×248
×82
×47
×32

question asked: 07 Aug '12, 07:41

question was seen: 2,243 times

last updated: 07 Aug '12, 18:48

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