aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2011-07-04Explain a bit more what this does.Guy Harris1-0/+9
svn path=/trunk/; revision=37884
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+1
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-06-17Make pcap-ng the default. Add a compile-time option to prefer pcap-ng orGerald Combs1-1/+2
pcap. Add a "-P" capture option which tries to use pcap instead of pcap-ng ("-P" seemed to be the best option but we may want to use a different letter). Update the documentation and release notes. svn path=/trunk/; revision=37696
2011-06-16From Kevin Kayes via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6026Alexis La Goutte1-1/+2
Enhance Snoop file reader to include 10Gbit datalink value svn path=/trunk/; revision=37683
2011-06-15Try to squelch some compiler warnings.Guy Harris1-2/+2
svn path=/trunk/; revision=37673
2011-06-15Squelch some compiler warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=37672
2011-06-15Strings are not writable, and the compiler warns that assigning aGuy Harris1-1/+1
pointer to a string to a non-const pointer discards qualifiers; make the err_info member of the wtap_reader structure a const pointer. svn path=/trunk/; revision=37671
2011-06-10Fix capinfo: ** ERROR **: Unknown capture file type 61Jakub Zawadzki1-1/+5
svn path=/trunk/; revision=37643
2011-06-09The only place where we care about zlib is file_wrappers.c; includeGuy Harris3-8/+6
<zlib.h> there, rather than wtap-int.h. That obviates the need to include config.h earlier in ascend_scanner.l; revert the previous change, so we don't require a version of Flex that supports %top. svn path=/trunk/; revision=37640
2011-06-09Fix possible compilation errors.Jakub Zawadzki1-10/+9
svn path=/trunk/; revision=37638
2011-06-09- Add something to columns when using mime-encapJakub Zawadzki2-3/+2
- Replace decoders in wiretap/CMakeLists.txt svn path=/trunk/; revision=37637
2011-06-09- Replace jpeg_jfif decoder, with more generic mime_file (no more 64KB limit!).Jakub Zawadzki6-174/+197
- Add new dissector packet-mime-encap which understands mime_file fragmentation. svn path=/trunk/; revision=37636
2011-06-09Move the copyright notice and the config.h include to the top of theGerald Combs1-2/+4
file so that we have the proper definitions in place for large file support on Solaris (bug 6102). svn path=/trunk/; revision=37635
2011-06-09Make sure we don't write invalid record lengths.Gerald Combs1-0/+6
svn path=/trunk/; revision=37634
2011-06-08Limit the lengths of some of our patterns. Fixes an infinite loop foundGerald Combs1-16/+16
when trying to read a TPNCP data file. svn path=/trunk/; revision=37625
2011-06-07Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warning.Bill Meier1-2/+1
svn path=/trunk/; revision=37604
2011-06-07Add more missing files.Anders Broman1-0/+1
svn path=/trunk/; revision=37593
2011-06-06Add links to libtool's recommendations for library versions.Gerald Combs1-0/+1
svn path=/trunk/; revision=37582
2011-06-04Fix wiretap headers to allow error-free ABI dumping.Balint Reczey50-4/+147
svn path=/trunk/; revision=37543
2011-06-04Reorganize dumpabi targets to keep temporary filesBalint Reczey1-2/+3
svn path=/trunk/; revision=37540
2011-05-31Fix some gcc 'old-style function definition' warnings.Bill Meier1-1/+1
svn path=/trunk/; revision=37482
2011-05-31Declare the snapshot_length as unsigned.Chris Maynard3-3/+3
svn path=/trunk/; revision=37479
2011-05-31Add dumpabi target to Makefiles in wsutil, epan and wiretap directories.Balint Reczey1-0/+10
We can use the dumped ABI description for comparing ABI changes between revisions. svn path=/trunk/; revision=37474
2011-05-29Remove unused varable:Anders Broman1-1/+1
iseries.c:305: warning: unused variable 'tcpformat' svn path=/trunk/; revision=37467
2011-05-29From Martin Warnes:Anders Broman1-181/+371
This is significant update to the existing iseries wiretap module. It adds support for IPv6 (formatted & unformatted comms traces), in addition I've tidied up the sscanf routines to better handle traces files with offset lines. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5957 svn path=/trunk/; revision=37466
2011-05-17Declare wtap_dump_has_name_resolution().Guy Harris1-0/+1
svn path=/trunk/; revision=37215
2011-05-17* Don't declare a used arg as unused.Michael Tüxen1-3/+2
* Really clear the EOF flag. This fixes a bug where tshark is not able to do a live capture from a pcapng file. svn path=/trunk/; revision=37207
2011-05-13From Huzaifa Sidhpurwala of the Red Hat Security Response Team: Fix anGerald Combs1-0/+9
integer overflow in wiretap/visual.c. svn path=/trunk/; revision=37128
2011-05-11Check our original record length. Fixes a crash bug found by HuzaifaGerald Combs1-0/+10
Sidhpurwala of the Red Hat Security Response Team. svn path=/trunk/; revision=37068
2011-05-11Fix a wrong name in a debug print statement.Michael Tüxen1-1/+1
svn path=/trunk/; revision=37061
2011-05-11Export wtap_fstat()Tomas Kukosa1-0/+1
svn path=/trunk/; revision=37059
2011-05-10file_read() can return -1; don't just blindly add it to a previousGuy Harris1-23/+36
file_read() return value. Use wtap_file_read_expected_bytes() in a number of places. svn path=/trunk/; revision=37054
2011-05-10file_read() can return -1; don't just blindly add it to a previousGuy Harris4-51/+53
file_read() return value. Use wtap_file_read_expected_bytes() in a number of places. svn path=/trunk/; revision=37053
2011-05-09Note that compressed Windows Sniffer files might have a CRC, just notGuy Harris1-0/+9
one computed the right way (as specified by RFC 1952). svn path=/trunk/; revision=37032
2011-05-09Get rid of the fd member of a wth structure; the FILE_T's in thatGuy Harris8-24/+45
structure include a file descriptor. Add a wtap_fstat() for the file readers that use file times to generate time stamps (we really need a way to say "this file has no time stamps" or "this file has only relative time stamps). svn path=/trunk/; revision=37026
2011-05-09From Jakub Zawadzki: for file read progress bars, use the raw offset inGuy Harris4-11/+9
the file, rather than the offset in the uncompressed data stream. That way we don't get the "hey, we're more than 100% into the file, better refigure this" surprise. svn path=/trunk/; revision=37025
2011-05-09If a gzipped file's name ends in .caz, don't check the CRC - it'sGuy Harris2-11/+30
probably a compressed file from the Windows Sniffer, and they don't bother setting the CRC. svn path=/trunk/; revision=37024
2011-05-03Note what NetMon 3 actually uses various types for.Guy Harris1-5/+5
For the ones that are used for raw IP, use WTAP_ENCAP_RAW_IP. (Yes, NetMon checks for v4 vs. v6 for all of them.) svn path=/trunk/; revision=36975
2011-05-03Set the pseudo-header regardless of whether we have a trailer or not.Guy Harris1-42/+47
svn path=/trunk/; revision=36974
2011-05-03It appears that, in NetMon 802.11 captures, management frames have anGuy Harris1-104/+176
FCS and data frames don't have an FCS; I don't know about control frames. svn path=/trunk/; revision=36973
2011-05-03Squelch a compiler warning - but note, in a comment, a real problem theGuy Harris1-1/+2
warning points out. svn path=/trunk/; revision=36972
2011-05-03Fix indentation (tab stops are not guaranteed to be every 4 spaces).Guy Harris1-352/+352
svn path=/trunk/; revision=36971
2011-05-03From Tom Brezinski - fix for bug 5869:Guy Harris4-231/+452
This patch incorporates the following fixes from the patch attached to bug 5671 with changes as noted below: 1.) Files where the packet header and packet data are noncontiguous are handled improperly, resulting in read misalignment and ultimately the error message, "Observer: bad record: Invalid magic number 0xXXXXXXXX." This bug is caused by not obeying the packet_entry_header.offset_to_frame field. 2.) Daylight savings time is not properly accounted for in files using local time encoding. 3.) As of Observer/GigaStor v13.10 (bug 5671 incorrectly stated v14), timestamps in the file format changed from local time encoding to GMT encoding. Wiretap has been changed to support reading both formats. Patch submitted with bug 5671 added a separate file type to allow writing local format. This patch does not add the separate file type and always writes GMT. 4.) The wtap_dumper.bytes_dumped field is not being properly incremented as data is written to files. This patch also incorporates the following additional enhancements / fixes not in bug 5671: 1.) Support for reading BFR files which contain Fibre Channel captures. Test file Fibre_Channel_Capture.bfr attached. 2.) Support for modified file header used in upcoming v15. New header file format takes an unused byte from the version string to allow for a larger offset to the first packet to be specified. Test file V15_Lrg_Hdr_Test.bfr is attached, it is also a fuzz test as the number of TLV items given in the header is less then the actual. 3.) It was found that if the number of TLV items given in the header was larger then present it would fail to open the file. Test file V9_Num_TLVs_Too_Big.bfr is attached. svn path=/trunk/; revision=36970
2011-04-29configure: remove test for gzclearerr (not used anymore), add test for ↵Jakub Zawadzki1-3/+16
inflatePrime. svn path=/trunk/; revision=36949
2011-04-28From Hans-Christoph Schemmel:Anders Broman3-1/+7
A variant of 3GPP TS 27.010 multiplexing protocol dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5829 svn path=/trunk/; revision=36927
2011-04-28#include <stdlib.h> not needed;Bill Meier1-306/+305
use consistent indentation. svn path=/trunk/; revision=36921
2011-04-27From Yaniv Kaul: some 'set but not used' compilation fixes;Bill Meier1-650/+652
From me: - #include <stdlib.h> not needed; - Use consistent indentation; - use #if 0/#endif to comment out code rather than /* */ svn path=/trunk/; revision=36884
2011-04-27Based upon a patch from Yaniv Kaul: Comment out unused assignmeent/variables;Bill Meier1-34/+38
From me: - remove unneeded #include <stdlib.h>; - fix some indentation; - use #if 0/#endif rather that /* */ to comment out some code svn path=/trunk/; revision=36883
2011-04-22*Properly* get rid of bogus cast.Guy Harris1-1/+1
svn path=/trunk/; revision=36791
2011-04-22Cast away alignment warnings about pointers where we never actuallyGuy Harris1-4/+12
directly dereference pointers to the field members. Get rid of an unnecessary cast that provokes warnings. svn path=/trunk/; revision=36789