aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2009-01-14Update comment re the use of the flex statement '%option noline'Bill Meier1-3/+3
svn path=/trunk/; revision=27231
2009-01-08Fix a bug where a space character wasn't being written back to save files.Martin Mathieson1-3/+6
svn path=/trunk/; revision=27198
2009-01-08get rid of few signed/unsigned mishmash warnings to have it with MSVC6 ↵Tomas Kukosa1-1/+1
compilable svn path=/trunk/; revision=27195
2009-01-07Fix what certainly looks like a bug: change a SEEK_SET to SEEK_CURBill Meier1-1/+1
svn path=/trunk/; revision=27181
2009-01-07From Duncan Salerno:Jaap Keuter6-1/+454
Added LAPDm protocol dissector, GSM Um layer, and wiretap support for dct3trace captures, generated by gammu (many available at http://wiki.thc.org/gsm). svn path=/trunk/; revision=27176
2009-01-06Addt'l fix for bug #1937: Fill in frame pseudo_header as req'd.Bill Meier1-18/+47
Also: comment out support for MTP_L2 and SSCOP (encapsulation types WTAP_ENCAP_MTP2 & WTAP_ENCAP_ATM_PDUS) since I don't know how to fill in the pseudo_headers required by packet-mtp2 and packet-atm. svn path=/trunk/; revision=27172
2009-01-06Fix a typo in a commentBill Meier1-1/+1
svn path=/trunk/; revision=27164
2009-01-05Use encap=WTAP_ENCAP_UNKNOWN if encap can't be determined from the file frame.Bill Meier1-1/+1
(The original code before SVN 27158 was correct). svn path=/trunk/; revision=27159
2009-01-05Rework code somewhat; Fixes bug 1937 & various other issues.Bill Meier1-33/+82
Fixed: Crash when reading a K12text file with one frame; Crash after selecting the last frame and then a previous frame after file open. Select of frame n (>1) immediately after file open incorrectly displayed the packet details & data from frame n+1. File ! Merge (for K12text files) did not work correctly. Fixes: Essentially: clear all lexer state (look-ahead buffer, etc) for every file read. Also: Don't use global for keeping track of the current file position. Also: Handle *nix-style line endings as well as DOS-style. svn path=/trunk/; revision=27158
2009-01-04Fix some indentationBill Meier1-13/+13
svn path=/trunk/; revision=27156
2009-01-04Oops: Revert SVN #27152: There weren't actually any memory leaks ...Bill Meier1-6/+0
svn path=/trunk/; revision=27155
2009-01-04Fix a few minor memory leaks...Bill Meier1-0/+6
svn path=/trunk/; revision=27152
2009-01-04Minor rewording of a few comments; fix a few typos.Bill Meier1-1/+1
svn path=/trunk/; revision=27151
2008-12-24Name changes to match libpcap name change of the corresponding DLT_Guy Harris2-6/+6
value. svn path=/trunk/; revision=27113
2008-12-23Handle the new DLT_USB_LINUX_MMAP link-layer type.Guy Harris3-1/+11
svn path=/trunk/; revision=27099
2008-12-22Move wtap_pcap_encap_to_wtap_encap() and wtap_wtap_encap_to_pcap_encap()Guy Harris1-1/+585
back to libwiretap for now, as it's inherently tied to reading libpcap files; at some point we might want to have pcap-reading (and pcap-ng-reading?) code in a separate library, for use by, for example, dumpcap (and rawshark?). svn path=/trunk/; revision=27076
2008-12-20From babi: Fix three overflows (bugs 3150 and 3151).Gerald Combs1-1/+1
From me: Use a #define for the RTP analysis field name lengths. svn path=/trunk/; revision=27064
2008-12-17Clarify that, in the Linux USB capture format, the header is alwaysGuy Harris1-2/+2
followed by 8 bytes of "struct usb_device_setup_hdr", even if there's no setup information, but it should be interpreted only if setup_flag is 0. (That's what those mysterious 8 bytes are.) svn path=/trunk/; revision=27043
2008-11-27Added support for open TNEF files directly.Stig Bjørlykke6-2/+184
No we can decode those winmail.dat files. svn path=/trunk/; revision=26864
2008-11-20From yami:Jaap Keuter1-5/+6
The code in wiretap/wtap.c is not right. Because g_array_append_val should accept a value of type 'struct encap_type_info' rather than a pointer to this type. svn path=/trunk/; revision=26816
2008-11-16From Max Filippov:Anders Broman2-1/+5
patch to support IEE802.15.4 non-ASK PHY. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2906 svn path=/trunk/; revision=26792
2008-11-13For libpcap captures with the DLT DLT_BLUETOOTH_HCI_H4, make sure weGerald Combs1-4/+14
initialize the P2P direction. This keeps Valgrind from complaining. svn path=/trunk/; revision=26765
2008-10-26Patch from bug #2986: "Fixes and enhancements in pcapng reader"Stephen Fisher1-5/+65
svn path=/trunk/; revision=26556
2008-10-24Windows build: #include winsock2.h only when needed.Bill Meier2-5/+2
#include winsock2.h pulls in about 90 distinct .h files and about 140 total .h files. Currently winsock2.h is (mostly unnecessarily) included for each dissector via packet.h/wtap.h. This patch removes #include winsock2.h from wtap.h and then includes winsock2.h (or windows.h) in the few specific places required. With this patch, my Windows Wireshark build takes about 30% less time. svn path=/trunk/; revision=26535
2008-10-16Fixed a datatype to avoid a warning.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=26479
2008-10-13Allow really long lines.Martin Mathieson1-1/+1
svn path=/trunk/; revision=26429
2008-10-01Fix for: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2926 :Jeff Morriss1-9/+14
provide a default case (returning an error) to prevent wiretap from asserting out because we didn't set the packet encapsulation. svn path=/trunk/; revision=26327
2008-09-29From Francesco Fusco:Anders Broman4-16/+117
Endace ERFII (extension header) support. svn path=/trunk/; revision=26287
2008-09-19Move wtap_pcap_encap_to_wtap_encap and wtap_wtap_encap_to_pcap_encap toGerald Combs1-583/+2
libwsutil. svn path=/trunk/; revision=26233
2008-09-16Link libwireshark and wiretap against libwsutil. That was the original intentJeff Morriss1-2/+1
of adding libwsutil but somehow I missed it/got it wrong. This should solve https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1677#c18 Also remove the _DEPENDENCIES lines in epan and wiretap (as was done in the top-level Makefile in rev 25930) so that automake will automatically figure out the dependencies for us. Since the those 2 libraries now link against libwsutil, don't make every executable link against the library. (If this works I think we can significantly trim the list of libraries the executables link against and just let the libraries pull in what they need--which is, apparently, the point of the --as-needed flag: http://www.gentoo.org/proj/en/qa/asneeded.xml ). svn path=/trunk/; revision=26218
2008-09-15Fix for bug 2875:Jaap Keuter2-11/+22
Fix a final eth_fopen -> ws_fopen When configuring with --without-zlib these functions need to have some parameters tagged _U_ svn path=/trunk/; revision=26212
2008-09-11Suggest why we might have at least 3 different network subtypes for 802.11.Guy Harris1-1/+7
svn path=/trunk/; revision=26175
2008-09-10A network type of 2 appears to be similar to a network type of 1Guy Harris1-1/+3
(including 0's rather than an FCS in the packet). svn path=/trunk/; revision=26174
2008-09-07From Neil Piercy: Anders Broman1-0/+4
VC6 Build problem: wiretap/k12text.c includes unistd. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2851 svn path=/trunk/; revision=26161
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),Guy Harris2-2/+10
do *not* modify the string handed to them - they g_mallocate a new string and return it. Create routines that *do* ASCII-only case mapping in place, and use them instead. Clean up indentation. svn path=/trunk/; revision=26131
2008-08-21_MSC_VERs 1400 and greater require manifests. Check againstGerald Combs1-1/+1
MSC_VER_REQUIRED when we run mt.exe instead of checking for each individual MSVC_VARIANT. This fixes the current buildbot test failures on Windows, which resulted from a missing check for MSVC2008. This also keeps us from having to mess with a bunch of makefiles when we add support for new Visual C++ versions. svn path=/trunk/; revision=26052
2008-08-14Replace "guint" with "size_t" in a couple of places.Gerald Combs1-2/+2
svn path=/trunk/; revision=26021
2008-08-12From Márton Németh:Anders Broman1-7/+9
Clean up the Linux USB pseudoheader dissection. svn path=/trunk/; revision=25990
2008-08-12From Alexey Neyman:Anders Broman3-19/+129
Implement dissector for IPMB (DLT_IPMB_LINUX, 209). svn path=/trunk/; revision=25986
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-08-04From Pascal Quantin via bug 2719: Fix support for Microsoft Visual C++ 2008.Gerald Combs1-1/+1
From me: Instead of adding adns_config.h, place it a custom adns package in wireshark-win32-libs. Update tools/win32-setup.sh accordingly. Split the MSVC2008EE variant into MSVC2008 and MSVC2008EE, similar to MSVC2005 and MSVC2005EE. We have to worry about vcredist_x86.exe in both cases. Add Pascal to AUTHORS. Update the Developer's Guide. svn path=/trunk/; revision=25921
2008-07-17Remove -g abort from checkAPIs (for now) since existing issues not yet resolved.Bill Meier1-1/+3
svn path=/trunk/; revision=25759
2008-07-14From Stephen Donnelly:Jaap Keuter1-3/+6
ERF files can contain records of type TYPE_PAD. These records are not related to captured packets, have a zero timestamp value and no associated packet data. Normally TYPE_PAD records are stripped out during capture, but in rare cases unstripped files may exist. Previously wiretap/erf.c generated an 'unknown record encapsulation' error when encountering TYPE_PAD records. With this patch Wireshark skips over any TYPE_PAD records within ERF traces files without reporting an error. TYPE_PAD records are not counted, displayed or decoded. svn path=/trunk/; revision=25733
2008-07-11packet-k12.c expects pseudo_header->k12.extra_info to be guchar so make it a ↵Jeff Morriss1-1/+1
unsigned svn path=/trunk/; revision=25705
2008-07-09Don't cast a char[] into a guint32/64: the array may not be aligned ↵Jeff Morriss1-2/+8
correctly. This fixes a warning on Solaris/SPARC. svn path=/trunk/; revision=25692
2008-07-09Reindent some to get things a bit more consistent/readable.Jeff Morriss1-367/+372
svn path=/trunk/; revision=25691
2008-07-09Add MP3 to the list of magic typesJeff Morriss1-3/+3
svn path=/trunk/; revision=25690
2008-07-08Tighten heuristics a bit: if the caplen or iplen is 0 then it's not a valid ↵Jeff Morriss1-1/+5
CSIDS file svn path=/trunk/; revision=25680
2008-07-08Tighten heuristics a bit: traces with packets longer than 16k are no good ↵Jeff Morriss1-3/+3
(is this a valid limit?) svn path=/trunk/; revision=25679
2008-07-02This directory needs some checkapi love; it's not yet ready for that toGuy Harris1-1/+1
be a default part of the build process, now that we're doing some more checking. svn path=/trunk/; revision=25658