aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2009-04-08Disable warnings-as-errors for Flex-generated output. Add a couple of gsizegerald1-3/+3
casts. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28002 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-31Add a check to make sure we don't try to allocate a huge buffer. Ifgerald1-7/+11
we get an improper buffer length, throw an error instead of aborting. Clean up the debugging code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27918 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-15From Jakub Zawadzki:stig1-6/+2
More remove checking for NULL before g_free(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27728 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-11Flex doesn't generate LLP64-compilable output. For the time being don'tgerald1-1/+5
use -WX when compiling ascend-scanner.c and k12text.c. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27703 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-10Another iteration of 64-bit-support-by-successive-approximation.gerald1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27690 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-10ng_file_read and SnifferDecompress need to be able to return negativegerald1-14/+18
values, so adjust accordingly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27688 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-09More 64-bit fixes.gerald4-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27685 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-09Convert a bunch of ints to size_t in ngsniffer.c, and make sure file_readgerald2-15/+15
can accept size_t's. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27684 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-09P64 fixes.gerald9-18/+18
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27683 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-08Change a a remaining eth_fopen to ws_fopen (used only under an #if debug).wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27659 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07More P64 changes.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27641 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07More P64 changes.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27640 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07More P64 changes.guy1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27639 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07More P64 changes.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27638 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07Squelch warnings - none of those strings will be so long that theguy1-6/+6
difference between an int and a gsize/size_t matters. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27637 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07More P64 stuff.guy2-6/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27636 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-07Some LLP64 work to get rid of warnings for Win64; this is also good forguy2-14/+14
LP64. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27635 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-02More Windows compiler flag cleanups. Fix a problem with my last commitgerald1-4/+1
that would break compilation for older compilers. Create a "DLL_LDFLAGS" variable and use it in DLLs and plugins. Use PLUGIN_LDFLAGS and DLL_LDFLAGS where needed. Don't force i386 code in the TPG plugin. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27582 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-27Some context names now do include '-', so allow it.martinm1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27562 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-25From Mark C. Brown:jake2-7/+14
Added support for HPVM (Integrity Virtual Machines) guest AVIO (Accelerated Virtual IO) driver IGSSN. Cleaned up the trace record checks. Made the default ethernet if the nettl subsystem is not recognized. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27549 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-21Add a cast to fix a VC6 compie warningwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27494 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-16Add support for reading Apple's Bluetooth PacketLogger capture files tosfisher5-2/+262
wiretap. Modify various other locations to accommodate the fact that PacketLogger files do not specify the direction of packets. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27463 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-27From Rolf Fiedler:etxrab3-1/+26
Add DPNSS link layer dissector, support EyeSDN Trace files with DPNSS. (Removed a couple of c++ style comments). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3224 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27312 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-14Update comment re the use of the flex statement '%option noline'wmeier1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27231 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-08Fix a bug where a space character wasn't being written back to save files.martinm1-3/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27198 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-08get rid of few signed/unsigned mishmash warnings to have it with MSVC6 ↵kukosa1-1/+1
compilable git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27195 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-07Fix what certainly looks like a bug: change a SEEK_SET to SEEK_CURwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27181 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-07From Duncan Salerno:jake6-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27176 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-06Addt'l fix for bug #1937: Fill in frame pseudo_header as req'd.wmeier1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27172 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-06Fix a typo in a commentwmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27164 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-05Use encap=WTAP_ENCAP_UNKNOWN if encap can't be determined from the file frame.wmeier1-1/+1
(The original code before SVN 27158 was correct). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27159 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-05Rework code somewhat; Fixes bug 1937 & various other issues.wmeier1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27158 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-04Fix some indentationwmeier1-13/+13
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27156 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-04Oops: Revert SVN #27152: There weren't actually any memory leaks ...wmeier1-6/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27155 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-04Fix a few minor memory leaks...wmeier1-0/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27152 f5534014-38df-0310-8fa8-9805f1628bb7
2009-01-04Minor rewording of a few comments; fix a few typos.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27151 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-24Name changes to match libpcap name change of the corresponding DLT_guy2-6/+6
value. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27113 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-23Handle the new DLT_USB_LINUX_MMAP link-layer type.guy3-1/+11
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27099 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-22Move wtap_pcap_encap_to_wtap_encap() and wtap_wtap_encap_to_pcap_encap()guy1-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?). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27076 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20From babi: Fix three overflows (bugs 3150 and 3151).gerald1-1/+1
From me: Use a #define for the RTP analysis field name lengths. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27064 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Clarify that, in the Linux USB capture format, the header is alwaysguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27043 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-27Added support for open TNEF files directly.stig6-2/+184
No we can decode those winmail.dat files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26864 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-20From yami:jake1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26816 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-16From Max Filippov:etxrab2-1/+5
patch to support IEE802.15.4 non-ASK PHY. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2906 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26792 f5534014-38df-0310-8fa8-9805f1628bb7
2008-11-13For libpcap captures with the DLT DLT_BLUETOOTH_HCI_H4, make sure wegerald1-4/+14
initialize the P2P direction. This keeps Valgrind from complaining. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26765 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-26Patch from bug #2986: "Fixes and enhancements in pcapng reader"sfisher1-5/+65
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26556 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-24Windows build: #include winsock2.h only when needed.wmeier2-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26535 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-16Fixed a datatype to avoid a warning.stig1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26479 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-13Allow really long lines.martinm1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26429 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-01Fix for: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2926 :morriss1-9/+14
provide a default case (returning an error) to prevent wiretap from asserting out because we didn't set the packet encapsulation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26327 f5534014-38df-0310-8fa8-9805f1628bb7