Ethereal-dev: Re: [Ethereal-dev] MySQL dissector patch

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

From: Huagang XIE <huagang@xxxxxxxxxxxxx>
Date: Mon, 20 Jan 2003 16:57:58 -0800
Thanks!  There is still a problem I can not fix..

when I try to use col_append_fstr() to add a string from the packet to COL_INFO. That string is at the end of a record(packet) without a "NULL" ended, but we know length of the string. The problem is it seems that the tvb_memdup(tvb,offset,length) is not working very well, it show more bytes (which cross the packet) on the COL_INFO.

do you have a good solution to it?

Thanks,
huagang

Guy Harris wrote:

On Sun, Jan 19, 2003 at 01:30:46PM -0800, Guy Harris wrote:
Checked in, with a change to use "tvb_reported_length_remaining()" in
the loop (so that it throws an exception and reports a short frame if
the capture was done with a snapshot length less than the length of some
packet), to use "tvb_ensure_length_remaining()" to find out how much
data is left in the frame (in order to throw that exception), and with
an update to "Makefile.nmake" as well as "Makefile.am" (so that it's
included if you compile with Microsoft Visual C++).

I later changed it to use the "tcp_dissect_pdus()" routine rather than
to do the loop over packets in the TCP segment and the desegmentation
itself.