summaryrefslogtreecommitdiff
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2009-10-01(minor) Indent fix.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=30228
2009-09-30Removed an unneeded assignment.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=30215
2009-09-29Read nsecs as a signed value.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30189
2009-09-25Treat 13 as if it came from OpenBSD except on BSD/OS, so that if thereGuy Harris2-29/+20
are any BSD/OS users still out there using Wireshark to read RFC 1483 ATM captures from BSD/OS, they can still do so, but all other users get to read OpenBSD DLT_ENC captures, not just users *on* OpenBSD. That also lets us simplify some hacks to deal with a link-layer type of 13 on Nokia IPSO captures. svn path=/trunk/; revision=30159
2009-09-24Update *.vcproj to visual studio 8Anders Broman1-1/+2
svn path=/trunk/; revision=30111
2009-09-23Build wiretap with cmake on OSX.Stig Bjørlykke1-0/+2
svn path=/trunk/; revision=30096
2009-09-23More fixes for OSX - might work now :-)Jörg Mayer1-0/+6
svn path=/trunk/; revision=30093
2009-09-17We pass the file handle to snoop_read_shomiti_wireless_pseudoheader();Guy Harris1-1/+1
use that. svn path=/trunk/; revision=29960
2009-09-17We need an err_info argument to snoop_read_shomiti_wireless_pseudoheader,Guy Harris1-5/+7
as it might fill that in. svn path=/trunk/; revision=29959
2009-09-17Do *NOT* skip the rest of the header by reading into a fixed-size bufferGuy Harris1-12/+21
on the stack! There is no guarantee that the header length won't cause a buffer overflow - there could be a bug in some version of Surveyor generating a bad file, there could be a future version of Surveyor that has a really big pseudo-header, the file could've been written by something other than Surveyor that has a bug in it, there could be a file that's corrupted in transit, or there could be a deliberately malformed packet trying to cause *Shark to execute arbitrary code. Also, explicitly check for a too-short header length and fail with WTAP_ERR_BAD_RECORD in that case. Add some comments asking some questions about the header. (The previous change was for bug 3856: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3856 not bug 3865.) svn path=/trunk/; revision=29958
2009-09-17From Clay Jones via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3865 :Jeff Morriss1-9/+31
The Shomiti Wireless head was modified in a recent release such that wireshark can no longer read Shomiti wireless capture files. This new format is backwards compatible with the old format. svn path=/trunk/; revision=29956
2009-09-08- now wireshark compiles with cmake as wellJörg Mayer1-2/+0
svn path=/trunk/; revision=29799
2009-09-02Beginnings of getting cmake to build stuff in epan.Jörg Mayer1-3/+5
It's only beginnings, so epan is commented out in the subdirs statement. This is more a synch to avoid duplicate work and creating conflicting patches to the cmake stuff. svn path=/trunk/; revision=29666
2009-08-30On Windows a shared library in divided into a DLL part (RUNTIME) and an ↵Kovarththanan Rajaratnam1-2/+5
import lib (ARCHIVE). svn path=/trunk/; revision=29622
2009-08-26#include <stdio.h> no longer req'd.Bill Meier1-1/+0
svn path=/trunk/; revision=29569
2009-08-23From kahou:Jaap Keuter3-2/+8
Add Fibre Channel Delimiter Dissector for Fibre Channel FC2. svn path=/trunk/; revision=29531
2009-08-10Update a comment - a bad packet size could also be the result of a fileGuy Harris1-2/+3
not actually being an ERF file. Don't compute the packet size until you know that rlen is valid. svn path=/trunk/; revision=29366
2009-08-10Don't try to allocate more than WTAP_MAX_PACKET_SIZE. Fixes a crashGerald Combs1-0/+7
reported in bug 3849. svn path=/trunk/; revision=29364
2009-08-07* Tue May 26 2009 cmorve69@yahoo.esJörg Mayer1-1/+1
- made it compile with --as-needed This patch was taken from the opensuse wireshark.spec file. No thanks go to the author and the package maintainers of this package for not sending this upstream - it would have made it into 1.2.0. svn path=/trunk/; revision=29326
2009-07-26Note that libpcap fails if it tries to read a file with a snapshotGuy Harris1-1/+2
length > 65535, so we shouldn't use a larger value. svn path=/trunk/; revision=29194
2009-07-16From Kahou via bug 3739:Stig Bjørlykke3-0/+6
New DLT value is added for Fibre Channel FC2. svn path=/trunk/; revision=29115
2009-07-16Move th /MP flag setting to LOCAL_CFLAGS set in configure.nmakeAnders Broman1-1/+1
for MSVC variant 2008 only. As suggested by Bill Meier. svn path=/trunk/; revision=29114
2009-07-15Add /MP flag to make use of multi cores.Anders Broman1-1/+1
svn path=/trunk/; revision=29104
2009-07-02Don't dump out the raw link-layer type when noting thatGuy Harris1-2/+5
KHciLoggerDatalinkTypeBCSP and KHciLoggerDatalinkTypeH5 aren't supported - just explicitly say "BSCP" or "H5". For unknown link-layer types, say "unknown or unsupported", as other Wiretap modules do. svn path=/trunk/; revision=28925
2009-07-02Patch from Alex Badea for Bug 3645.Michael Tüxen1-2/+2
This fix will be included in Wireshark 1.2.1. svn path=/trunk/; revision=28924
2009-06-28Add support for DLT_PPP_WITH_DIR. This fixes bug 3619.Michael Tüxen2-9/+68
Thanks for Tyson Key for reporting the issue. svn path=/trunk/; revision=28877
2009-06-28Stop loading a pcapng file with multiple section header blocks.Michael Tüxen1-11/+19
This fixes a bug reported by Tyson Key as a follow up of Bug 3560. Also some cleanups and debug output improvements. Thanks to Tyson Key for reporting the bug and providing a tracefile. This fix will be included in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28868
2009-06-27Accept file snaplen larger than WTAP_MAX_PACKET_SIZE,Michael Tüxen1-6/+6
text2pcap uses 102400. This fixes bug 3620. Thanks to Tyson Key for reporting the bug and providing capture files. This fix should be included in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28866
2009-06-27Fix copy/paste error introduced in rev. 28863.Michael Tüxen1-1/+1
Thanks to Guy for finding and reporting it. svn path=/trunk/; revision=28865
2009-06-27Another cleanup. We are now back to Ulf's originalMichael Tüxen1-28/+42
model of data handling. svn path=/trunk/; revision=28864
2009-06-27Cleanup. Should be included in Wireshark 1.2.1 and higher to keepMichael Tüxen4-17/+20
merging future bug fixes simple. svn path=/trunk/; revision=28863
2009-06-27Add support for writing pcapng files with multipleMichael Tüxen2-29/+89
encapsulations. This fixes a bug reported by Sake during the Sharkfest 09. Thanks for providing a Netscreen tracefile with multiple link layer types. This patch will be included in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28862
2009-06-27This patchMichael Tüxen4-19/+42
* adds an encapsulation argument to pcap_write_phdr. * writes the pseudo header when writing pcapng files. This fixes a bug where you could not write pcapng files when using encapsulations requiring pseudo headers. svn path=/trunk/; revision=28859
2009-06-27If all interfaces use the same encapsulation, useMichael Tüxen1-7/+18
this a the file encapsulation. This fixes a bug where you can not save a file in libpcap format when you captured it as a pcapng one. This fix will be scheduled for Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28858
2009-06-27This commitMichael Tüxen4-49/+113
* adds an encap argument to pcap_process_pseudo_header. * adds support for reading pseudo headers. It fixes Bug 3560. Thanks to Tyson Key for reporting the bug and providing trace files. This fix will be scheduled for inclusion in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28857
2009-06-26Disable debug output.Michael Tüxen1-1/+1
svn path=/trunk/; revision=28851
2009-06-26* Allocate enough memory for reading a packet.Michael Tüxen1-22/+48
* Initialize pseudoheader. * Add some input validation / protection code. * Fix some return values. * Clean up some whitespaces. This fixes Bug 3565. Thanks to Tyson Key how reported the issue and provided capture files for debugging. This fix is scheduled for inclusion in Wireshark 1.2.1 and higher. svn path=/trunk/; revision=28850
2009-06-24From Duncan Salerno:Jaap Keuter1-4/+11
Ensure dct3trac packets never longer than 23 bytes. svn path=/trunk/; revision=28838
2009-06-22Improve heuristic for packetlogger file format detection.Michael Tüxen1-4/+2
svn path=/trunk/; revision=28809
2009-06-22Add protection code to avoid crashed when .erf filesMichael Tüxen1-1/+7
are wrongly identified as packetlogger ones. Will be scheduled for 1.2.1. svn path=/trunk/; revision=28808
2009-06-18Fix for bug 3539: Address as signess issue for fcs_len.Michael Tüxen2-3/+3
Bugfix scheduled for 1.2.1. svn path=/trunk/; revision=28768
2009-06-17Clean up a comment.Michael Tüxen1-2/+3
svn path=/trunk/; revision=28763
2009-06-16Whitespace cleanups.Michael Tüxen1-4/+4
svn path=/trunk/; revision=28757
2009-06-16Support per packet dumping in wtap_encap_string() and wtap_encap_short_string().Stig Bjørlykke1-5/+9
svn path=/trunk/; revision=28752
2009-06-15From Ben Winslow via bug 3535:Gerald Combs1-1/+10
Because Lucent/Ascend equipment will sometimes omit the hex dump for a packet or send two headers followed by two hex dumps, Wireshark needs to be very lenient when parsing a Lucent/Ascend trace. On a busy access server, a packet like this is pretty likely to appear within a few minutes. svn path=/trunk/; revision=28749
2009-06-15Rename all of the ascend files:Jörg Mayer10-47/+51
That way we hopefully won't need the runlex.sh hack any more. Also the ylwrap stuff is (hopefully) obsolete. ascend.[hc] -> ascendtext.[hc] ascend-scanner.l -> ascend_scanner.l ascend-grammar.y -> ascend.y svn path=/trunk/; revision=28744
2009-06-15Fix bug reported by Stig: per packet encapsulation forMichael Tüxen1-2/+2
pcapng is supported. svn path=/trunk/; revision=28736
2009-06-11When writing pcapng files use correct interface indexMichael Tüxen1-1/+1
of 0 instead of 1. svn path=/trunk/; revision=28696
2009-06-04Fix Windows build warning:Bill Meier1-1/+1
cl : Command line warning D9024 : unrecognized source file type 'ascend-grammar.h', object file assumed cl : Command line warning D9027 : source file 'ascend-grammar.h' ignored svn path=/trunk/; revision=28635
2009-06-02Optimized check if file is a nstrace file.Stig Bjørlykke1-10/+4
svn path=/trunk/; revision=28614