aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
AgeCommit message (Collapse)AuthorFilesLines
2007-04-23Grr. Flex. Can't make warnings errors yet - we'd have to keep thatGuy Harris1-4/+0
from being done on Flex-generated files, or fix the problems that pop up on some platforms. svn path=/trunk/; revision=21520
2007-04-23Make warnings errors when possible.Guy Harris1-0/+3
svn path=/trunk/; revision=21519
2007-04-23Add a couple more warnings to the standard set.Guy Harris1-0/+2
svn path=/trunk/; revision=21516
2007-04-22Propagate Joerg's fix to make --enable-extra-gcc-checks turn offGuy Harris1-2/+3
--enable-warnings-as-errors (if any tests enabled by --enable-extra-gcc-checks are safe to treat as errors, they're safe to turn on by default). svn path=/trunk/; revision=21515
2007-04-22Turn on almost all warnings for Wiretap - if any of them cause problemsGuy Harris1-8/+9
on some platforms due to unfixable problems (e.g., crappy vendor headers), we can move them back to the "extra" list. Put those warnings in the order in which they appear in the GCC man page on my machine. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. svn path=/trunk/; revision=21514
2007-04-22adding AC_(WIRESHARK|WIRETAP)_GCC_CFLAGS_OPTION macro to test whether gccSebastien Tandel2-47/+57
supports the options passed as arguments. If the options are supported, they are added to CFLAGS. svn path=/trunk/; revision=21493
2007-04-22Use AC_HELP_STRING for the help strings for --with and --enable flags.Guy Harris1-35/+46
Add -Wpointer-arith to the GCC -W flags by default. Make "extra-gcc-checks" and "warnings-as-errors" --enable flags rather than --with flags - autoconf's model is that --enable is for turning features on or off, --with is for enabling or disabling the use of external packages (libpcap, Net-SNMP, GNU ADNS, etc.). When testing whether the compiler is GCC, use the same style all the time - check whether "x$GCC" equals "xyes". (The "x" might be overkill - if you don't quote the arguments, it avoids a missing argument to "test"/"[", but if you do, it might not be needed.) svn path=/trunk/; revision=21492
2007-04-21Fix a comment to reflect reality - -Wcast-qual is added only withGuy Harris1-4/+4
--with-extra-gcc-checks. Unconditionally add -Wpointer-arith to GCC flags, and, if --with-extra-gcc-checks is specified, add -Wstrict-prototypes. svn path=/trunk/; revision=21491
2007-04-21Match "%4x" with an unsigned value in sscanf.Guy Harris1-3/+11
Check for a case where, conceivably, the on-the-wire packet length (from the IP header) could be shorter than the captured data length (due to Ethernet padding), and handle it by making sure the on-the-wire length is always >= the captured data length. svn path=/trunk/; revision=21490
2007-04-21Get rid of a warning with at least some compilers.Guy Harris1-1/+1
svn path=/trunk/; revision=21489
2007-04-21Explicitly mark new_k12_file_data() as taking no arguments - in C89, atGuy Harris1-1/+1
least, "int foo()" defines or declares an old-style function, not one with no arguments. svn path=/trunk/; revision=21488
2007-04-17Fix --with(out)-warnings-as-errors test so warnings-as-errors can be ↵Jeff Morriss1-4/+4
disabled (with gcc) svn path=/trunk/; revision=21453
2007-04-14remove "treat warnings as errors" barrier for every repo containing codeSebastien Tandel1-3/+0
generated by $(LEX) until a solution is found to compile them separately. svn path=/trunk/; revision=21432
2007-04-14Beginnings of a Cisco ERSPAN dissector - the only thing missing is the codeJörg Mayer1-1/+5
to actually call this (aka to handle the ambiguities of DLT values). svn path=/trunk/; revision=21427
2007-04-14Same as for top level configure.inJörg Mayer1-8/+16
svn path=/trunk/; revision=21426
2007-04-13change the script to automatically stop on warning if compiling with gcc.Sebastien Tandel1-9/+11
svn path=/trunk/; revision=21422
2007-04-10Fix for bug 1526. Compare to uppercased strings.Jaap Keuter1-3/+5
svn path=/trunk/; revision=21361
2007-04-08Fix a comment.Guy Harris1-2/+2
svn path=/trunk/; revision=21356
2007-04-08Fix up the configure message about extra GCC flags to indicate whatGuy Harris1-2/+2
flags are being added. Quote the message about flags added for the Apple linker, so it shows up correctly. svn path=/trunk/; revision=21355
2007-04-02There are odd packet records in k15 generated files where the interface ↵Luis Ontanon1-4/+33
record does not match any given one. I noticed that these records have the first byte changed so When a lookup fails mask the byte and lookup again. svn path=/trunk/; revision=21303
2007-03-31From James Menzies:Stephen Fisher1-3/+12
This corrects two long standing issues with the Visual Networks file type in PPP and ML-PPP environments. svn path=/trunk/; revision=21293
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher2-17/+34
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-26Change the test for -Wdeclaration-after-statement slightly to make it work ↵Jeff Morriss1-2/+1
for me. Also redirect its stderr to /dev/null to avoid worrying users svn path=/trunk/; revision=21208
2007-03-26make the test for -Wdeclaration-after-statement gcc 2.96 friendly.Ronnie Sahlberg1-1/+11
and once again the mighty wireshark compiles on rh71 svn path=/trunk/; revision=21206
2007-03-26Also try to set -Wdeclaration-after-statement in wiretapJeff Morriss1-0/+8
svn path=/trunk/; revision=21200
2007-03-25All private data for a capture in a Wiretap module must be per-file, notGuy Harris2-52/+38
static to the module. Add the older(?) ID tag for MPEG audio. Just use the ID at the beginning to identify MPEG audio files; don't check the file any further. If the read of the magic number doesn't work, get the error, and, if there is no error (i.e., it's a short read), just return 0 (meaning "no error, but this isn't that type of file). Similarly, if the magic number doesn't match, just return 0, so other types of file are tried. svn path=/trunk/; revision=21192
2007-03-25make the mpeg_open() more conservative checking whether there's ssome magic ↵Luis Ontanon1-1/+28
bytes at the beginning of the file. I added just one type of mpeg magic ("ID3") there's probably more, please add. svn path=/trunk/; revision=21185
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-17/+17
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2007-03-23From Sebastien Tandel:Stephen Fisher2-3/+13
(Temporarily disable the warnings as errors default on Unix to get to get the buildbots and people with gcc40 going again until those additional warnings gcc40 generates can be fixed-I'm working on it ASAP) Patch for configure.in which disables by default the treatment of warnings as errors. It can be enabled with './configure --with-warnings-as-errors'. The macro will test first if GCC is present. If it's the case, HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced by HAVE_WARNINGS_AS_ERRORS. With this switch, people won't suffer from unexpected warnings when downloading svn sources during the transition time ;) svn path=/trunk/; revision=21153
2007-03-23Fix some warnings on the Solaris buildbotStephen Fisher1-12/+12
svn path=/trunk/; revision=21147
2007-03-22fix a new warningUlf Lamping1-1/+1
svn path=/trunk/; revision=21128
2007-03-22Add -Werror when using GCC only to the Makefile.am of the baseStephen Fisher2-1/+8
directory and most of the plugins to match the same command put in the Makefile.nmake files for Windows compliations. Fix a few warnings when compiling under gcc 3.4.4 on FreeBSD. Create new automake file variable called USING_GCC in configure.in and wiretap/configure.in to acomplish the above -Werror addition. svn path=/trunk/; revision=21127
2007-03-22Added mpeg exportsGraham Bloice1-0/+8
svn path=/trunk/; revision=21116
2007-03-22From Graham BloiceRonnie Sahlberg1-10/+10
Remove compiler warnings svn path=/trunk/; revision=21115
2007-03-22Add some missing includes and hope that msvc will find the definition for off_tRonnie Sahlberg1-0/+8
svn path=/trunk/; revision=21113
2007-03-22From Shaun JackmanRonnie Sahlberg8-3/+506
Wiretap support to read MPEG files svn path=/trunk/; revision=21112
2007-03-21fix another warningUlf Lamping1-1/+1
svn path=/trunk/; revision=21079
2007-03-21set compiler option "treat warnings as errors" - to prevent new warnings for ↵Ulf Lamping7-9/+9
wiretap remove all compiler warnings: a) prevent wrong malloc/free definitions by lex/yacc generated files b) add int/time_t casts - MSVC2005 is more "sensitive" about this than MSVC6 svn path=/trunk/; revision=21078
2007-03-18Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer ↵Bill Meier1-1/+1
defined) svn path=/trunk/; revision=21052
2007-03-17rename a variable.Luis Ontanon1-5/+5
svn path=/trunk/; revision=21045
2007-03-17K15 final:Luis Ontanon1-20/+5
add another interface record type with the very same arch than the "old" one. now I can read all the K15 files I got. svn path=/trunk/; revision=21044
2007-03-17K15 phase 1Luis Ontanon1-169/+207
be able to read files with records larger than 0x2000 bytes this fixes http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=532 svn path=/trunk/; revision=21043
2007-03-10Major cleanup of debug code and whitespace changes.Luis Ontanon1-700/+632
svn path=/trunk/; revision=21013
2007-03-07Fix a couple of off-by-one overflows reported in bug 1415. Update theGerald Combs1-1/+1
release notes accordingly. svn path=/trunk/; revision=20990
2007-02-18From Florent Drouin: support for MTP2 in ERF type 5 (Multi-Channel HDLC) filesJeff Morriss2-2/+25
svn path=/trunk/; revision=20838
2007-02-08From: Kriang LerdsuwanakijLuis Ontanon2-2/+30
In the attached patch, the K12 wiretap now saves the content of record after captured packet data. The K12 dissector then could extract them and provide useful information to properly dissect FP frames (user plane of UTRAN Iub interface). svn path=/trunk/; revision=20749
2007-02-04from:Luis Ontanon1-30/+63
Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> I discovered that Wireshark K12xx detects the type of input (E1 timeslot or ATM) based on the extra information. My previous patch to enable Wireshark to open K12xx files with no extra information (extra_len equals 0 in SRCDEST record) failed to give later dissectors the input type. Attached is the patch to correct this for ATM PVC. It adds VPI/VCI/CID information for display in the dissected tree (in k12_open function). k12_read and k12_seek_read are also made more robust. These are reverse engineered based on hexeditor and constants found in tektronix configuration file. Please apply the patch. svn path=/trunk/; revision=20705
2007-01-31instead of putting the MSC_VER_REQUIRED test into the root Makefile (which ↵Ulf Lamping2-1/+9
would require to change ALL makefiles - the buildbot revealed it), simply put it in the wiretap generation. As wiretap is mandatory and one of the first things to be build this doesn't even sound like a bad idea anyway ... svn path=/trunk/; revision=20646
2007-01-30From Paolo Abeni: update to support the new DLT_USB_LINUX format header.Guy Harris2-26/+214
Modified to support the header as a pseudo_header rather than as part of the packet data. Fixed some calls that fetch data from the USB packet to fetch it in little-endian byte order. Got rid of redundant code to get conversation-specific data (the get_usb_conv_info() call already does that). For control packets, only parse the setup information if setup_flag is 0. Don't interpret a control packet as a standard request unless the setup type is "Standard". svn path=/trunk/; revision=20632
2007-01-28from Kriang LerdsuwanakijLuis Ontanon1-2/+2
I found out the reason Wireshark refuses to read some .rf file I have. Those files have zero extra_len in SRCDEST header structure. See the attached file for example. It was created by selecting some frames from a larger .rf5 file (within Tektronix's own reader) and save as a separate file. svn path=/trunk/; revision=20579