Ethereal-dev: [Ethereal-dev] need help with tvb exceptions

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

From: Andy Howell <AndyHowell@xxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 23:07:27 -0600
My dissector gets part way through a packet and then shows [ Malformed Packet: mypacket ]

I tried doing a printf of the tvb_get_remaining() just after the last item that was added. It reports I have 48 bytes left. The next thing I do is tvb_get_ntohs, but since it never reaches the following statement, I assume its generating an exception.

It most likely a problem in my code, but I don't know what to check next. Is there any way to get more information about boundry errors etc?

Thanks,

	Andy