Ethereal-dev: Re: [ethereal-dev] random data on dump window

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 12 Oct 1999 14:33:15 -0700 (PDT)
> 	seek offset is typed "int" in "wiretap" subdir.
> 	I believe off_t should be used.

That should be an issue only if the capture file has a size that doesn't
fit into an "int"; there *should* be function prototypes in scope when
routines that take that offset as an argument are called, so that the
compiler should widen that "int" to "off_t" as necessary.

Perhaps there's some place where there's no prototype in scope.

Do you have "zlib" configured in?  (The code path for reading files is
different in versions with "zlib" configured in and with "zlib" not
configured in, and there's a problem with "zlib" on FreeBSD that I
worked around by arranging that Wiretap not define HAVE_UNISTD_H -
perhaps NetBSD has a problem with "zlib" if you *don't* define
HAVE_UNISTD_H.)

> 	The file was saved by latest ethereal.  Latest ethereal
> 	dumps it in a strange manner when it captured this stream, and
> 	when opened the file.  0.7.5 opens the file just fine.
> 	Thank you very much for your help!

Hmm.  The latest Ethereal, as checked out from CVS, works fine at work
with that capture file on a Solaris 2.5.1 system.  I'll try it on
FreeBSD this evening to see if it's a *BSD issue.