Ethereal-dev: Re: [Ethereal-dev] text2pcap with Timecodes - Patch Files

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 23 Nov 2001 23:53:37 -0800
On Fri, Nov 23, 2001 at 06:11:20PM -0800, Guy Harris wrote:
> Unless somebody *knows* of a text dump format in which the number of
> bytes of packet data per line doesn't have an absolute maximum (e.g.,
> 16), text2pcap should have such a maximum, and if it's seen that many
> byte values per line, ignore all subsequent byte values.  The maximum
> should probably default to 16, and be settable with a command-line flag.

There's another way of handling that - if we read an offset value that's
less that what we think it should be, assume the problem is that we
mistakenly treated some stuff in the text dump of the packet data as if
it were hex bytes from the packet.

I've checked that in, along with a fix to the previous bug I mentioned.