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

Decoding the last bytes of a stream?

0

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%


One Answer:

0

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

answered 07 Aug '12, 08:30

bball2601's gravatar image

bball2601
16567
accept rate: 50%