Copyright 1998-2010 Gerald Combs <gerald@wireshark.org> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled with GTK+ 2.18.7, with GLib 2.22.4, with libpcap 1.0.1_pre20090812,
with libz 1.2.4, with POSIX capabilities (Linux), with libpcre 8.0, without SMI,
without c-ares, without ADNS, without Lua, without GnuTLS, without Gcrypt,
without Kerberos, without GeoIP, without PortAudio, without AirPcap.
Running on Linux 2.6.32-tuxonice-r5, with libpcap version 1.0.1_pre20090812.
Built using gcc 4.4.3.
Wireshark is Open Source Software released under the GNU General Public License.
Check the man page and http://www.wireshark.org for more information.
Hi there,I was trying to get a capture started, it seems that only one "sample" was captured. What I mean by this is, the first packet(s) get captured, all following aren't recognized. So I tried dumping with tcpdump and opening the resulting file with wireshark, but then it gave me this error:The capture file appears to be damaged or corrupt.(pcap: File has 1435526081-byte packet, bigger than maximum of 65535)The file is not corrupted, tcpdump can read it. I have no idea why wireshark stopped working lately.tcpdump: 3.9.8-r1 or 4.0.1_pre20090709, doesn't make a differencelibcap: 2.17 or 2.19, no difference eitherlibpcap: 1.0.1_pre20090812Best RegardsJohannes Jeske
Hmmm, Wireshark reads that file just fine for me (I tried both the SVN version on Linux x86-64, 1.2.1 on Linux x86-64, and 1.2.6 on Windows x86).
Admittedly on Linux I'm using libpcap 0.9.8 . It might take me a while to dig up a different libpcap version and I'm not sure why it would cause Wireshark to fail where tcpdump is OK. (Are tcpdump and Wireshark both using the same libpcap?)
Well, they should use the same libpcap. I'm going to try to compile the old version, which failed now. I'll see what I can do. If it's really the libpcap, it seems to be a bug with new versions of libpcap...
OTOH, 1435526081 == 0x559063C1 and there are plenty of occurrences of that number in the PCAP file.Looks like that's the last 4 bytes of the 2nd packet (a DNS response pointing to www.heise.de). That IP features prominently in this capture file.Looking a bit further, the PCAP global file header says the snapshot length was 96 bytes. But, looking at frame 6, for instance, it says that only 90 bytes were captured and Wireshark notes that the capture was truncated. That's odd but it *shouldn't* cause any problems. Hand-decoding the PCAP file up to the 7th packet *seems* to be OK to me.
1) Wireshark doesn't use *any* version of libpcap to read pcap files - it has its own independent code to read capture files of all types, including pcap files; it (or, rather, dumpcap) only uses libpcap to capture live traffic. libpcap isn't the cause of this issue.2) Wireshark 1.2.6 has no problem reading this file on OS X or Windows XP; perhaps this is a problem with some library on your version of Gentoo, or a problem with Wireshark that doesn't prevent it from working with the versions of libraries on some OSes but that something about some library on that version of Gentoo reveals.
Valgrind didn't give any useful output, so there's obviously no problem with memory.
Still I have no idea why wireshark doesn't work. Any ideas which gentoo package should be recompiled? I recently allowed all "testing" packages to be merged, maybe this is the cause. But I don't want to change that again, maybe just one package has to be an older version?
My guess is that this is a problem with libz. If so, I don't know whether it's a problem introduced in libz 1.2.4 (which apparently redid the gz* routines, which is what Wireshark uses to read files - even uncompressed ones - if it's built with libz) or a Gentoo-specific problem.
Well, I downloaded libz 1.2.4 source, compiled and installed it on Mac OS X 10.6.2, and built top-of-SVN-tree Wireshark with it, and tried to read out.cap. It didn't have a problem.
So it's not as simple as "libz 1.2.4 is completely broken".
However, if I download the 1.2.6 source and compile *it* with libz 1.2.4, it can't read the same capture file that top-of-tree Wireshark could read when it was compiled with libz 1.2.4.In addition, if I do "make clean" on my top-of-tree source, and rebuild, it also can't read the same capture file.
1.2.5 is out, is that working? If so should we use it also in the windows build?On a side note; does this improvement>•Added inflateReset2() and inflateMark() functions, the latter to aid in random access applications make it possible to have random access now?