aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2003-10-13From Ulf Lamping: add some missing "cd .."s. (I guess the currentGuy Harris1-1/+3
directory in nmake files persists across targets; presumably all commands, or, at least, all "cd" commands, are run in the same process.) svn path=/trunk/; revision=8682
2003-10-10Give every Makefile.nmake file a "distclean" rule, and have "distclean"Guy Harris2-3/+7
recurse into subdirectories doing "nmake -f Makefile.nmake distclean". Have "nmake -f Makefile.nmake clean" not remove stuff that "make clean" doesn't remove (such as Flex/Bison output and config.h files) - and have "nmake -f Makefile.nmake distclean" remove stuff that "make distclean" removes, including "tethereal-tap-register.c" and "ethereal-tap-register.c". svn path=/trunk/; revision=8672
2003-08-27Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).Gilbert Ramirez1-1/+74
The search uses a naive approach; more work is required to add a Boyer-Moore Search algorithm. svn path=/trunk/; revision=8280
2003-07-25Add to the fundamental types passed between the scanner and the parser.Gilbert Ramirez1-23/+90
Besides "STRING", there is now "UNPARSED_STRING", where the distinction is that "STRING" was a double-quoted string and "UNPARSED_STRING" is just a sequence of characters that the scanner didn't know how to scan/parse, so it's up to the Ftype to parse it. This gives us more flexibility and prepares the dfilter parsing engine for the upcoming addition of the "contains" operator. In the process of doing this, I also re-did the double-quoted string support in the scanner, so that instead of the naively-simple support we used to have, double-quoted strings now can have embedded dobule-quotes, embedded octal sequences, and embedded hexadecimal sequences: "\"" embedded double-quote "\110" embedded octal "\x48" embedded hex Enhance the dfilter unit test script to be able to run a single collection of tests instead of having to run all of them all the time. svn path=/trunk/; revision=8083
2003-07-09Script to unit-test ftype functions via dfilters passed to tethereal.Gilbert Ramirez1-0/+1224
Uses text2pcap to create pcap trace files from hex-dumps embedded in the test script. svn path=/trunk/; revision=7996
2003-06-11Handle diff lines that look like "Binary files".Gilbert Ramirez1-1/+5
svn path=/trunk/; revision=7841
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer2-33/+33
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-05-04From Joerg Mayer: mark possibly-unused arguments as unused.Guy Harris1-4/+4
svn path=/trunk/; revision=5388
2002-05-04From Joerg Mayer: get rid of an unused argument, and flag another asGuy Harris1-6/+5
unused. svn path=/trunk/; revision=5387
2002-03-06Use the gdb "x" (examine memory) command instead of "print" to obtainGilbert Ramirez1-18/+39
the packet data. "print" will only show the first 200 members of an array, whereas "x" doesn't seem to have a limit. svn path=/trunk/; revision=4884
2002-03-06Add ability to pull packet from add_packet_to_packet_list() frame.Gilbert Ramirez1-16/+39
svn path=/trunk/; revision=4881
2002-02-27From Joerg Mayer:Guy Harris2-1/+9
In the "configure.in" files, add -D_U_="__attribute__((unused))" to CFLAGS if we're using GCC, and add -D_U_="" otherwise, so _U_ can be used to mark arguments as unused. Add -D_U_="" arguments to the Makefile.nmake files as well, so _U_ works with Microsoft Visual C++ as well. Add comments and RCS IDs to the Makefile.nmake files that don't already have them. svn path=/trunk/; revision=4824
2002-02-21Add first attempt at creating a tool to take a [t]ethereal core fileGilbert Ramirez2-1/+417
and using gdb, extract the packet that was being dissected when the core file was created. It works in simple cases; it will probably fail in many other cases. Right now it only creates libpcap files, and uses text2pcap to do so. svn path=/trunk/; revision=4767
2002-01-30Fix up some type/size problems that showed up when compiling on DigitalGuy Harris1-7/+8
UNIX on Alpha. svn path=/trunk/; revision=4635
2002-01-04From Hamish Moffatt:Guy Harris1-1/+1
Add some missing files in the "clean" targets. Use pod2html rather than man2html to build HTML man pages. Fix ethereal.nsi.in for recent versions of NSIS, and fix a typo. svn path=/trunk/; revision=4475
2001-12-12From Motonori Shindo:Guy Harris1-3/+3
fix a bogus batch mode inference rule of make, so that "vc60.pdb" files are created in the proper directory; delete ".pdb" files in a "nmake -f Makefile.nmake clean"; include the text2pcap and mergecap ".pdb" files in the Windows binary distribution. svn path=/trunk/; revision=4385
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=4199
2001-11-09Remove "text2pcap-scanner.obj" and "tools\lemon\lemon.obj" when a "nmakeGuy Harris1-1/+1
clean" is done. svn path=/trunk/; revision=4188
2001-10-04From Motonori Shindo: have CVS ignore some files generated by Win32Guy Harris1-0/+2
builds. svn path=/trunk/; revision=3995
2001-07-22Do __attribute__ stuff if the GCC version number is greater than orGuy Harris1-2/+2
equal to 2, not just if it's equal to 2 - GCC 3.0 makes it 3, not 2.... svn path=/trunk/; revision=3765
2001-06-26If length arguments to "%*s" aren't of type "int", cast them to "int",Guy Harris1-4/+4
as that's what C requires them to be. svn path=/trunk/; revision=3610
2001-04-23Signed vs. unsigned fixes from Joerg Mayer.Guy Harris1-6/+6
svn path=/trunk/; revision=3372
2001-04-18nmake was compiling lemon.c twice; now let it use its defaultGilbert Ramirez1-5/+1
rules, keeping it from over-compiling. svn path=/trunk/; revision=3325
2001-04-18Revert. MSVC is wrong. Thanks to Guy for pointing that out.Gilbert Ramirez1-3/+13
svn path=/trunk/; revision=3323
2001-04-18Makefile.nmake pulls in settings from config.nmakeGilbert Ramirez2-3/+10
Move 'const' keyword to keep const qualifiers balanced... gets rid of complaint from MSVC. svn path=/trunk/; revision=3321
2001-03-09Fixes to Lemon to get it to compile on platforms (such as some versionsGuy Harris1-11/+11
of Tru64 UNIX) that define TRUE and FALSE. Fixes to some Tru64 compiler warnings. svn path=/trunk/; revision=3120
2001-03-06Add some win32-specific targets in .cvsignore's.Gilbert Ramirez1-2/+2
Replace 'nmake' with $(MAKE) /$(MAKEFLAGS), from Mike Frisch. svn path=/trunk/; revision=3108
2001-02-27Move the location of cppmagic.h, since the lemon-flex include filesGilbert Ramirez2-1/+16
require it. It makes more sense to either put cppmagic with lemon, or in yet another common directory. I'll just put it with lemon. svn path=/trunk/; revision=3083
2001-02-23Add a little script which takes the output of "cvs diff", which isGilbert Ramirez2-1/+114
a flattened recursive diff, and unflattens it, so that it can be applied with "patch -p0". This has tested only against the output of "cvs diff -u". Usage: cvs diff -u | cvsdiff-fix.py > file.diff svn path=/trunk/; revision=3071
2001-02-15Don't cast the function argument to "qsort()" to the expected type, makeGuy Harris1-13/+16
the function have the expected type. Make the arguments to comparison functions used by the merge sort be "const void *", not "void *", just as the arguments to the comparison functions used by "qsort()" are "const void *". svn path=/trunk/; revision=3040
2001-02-15More prototype fun - make the Lemon parser allocate and free routinesGuy Harris1-5/+5
take fully-prototyped function arguments with types appropriate to "g_malloc()" and "g_free()", and change the calls to the functions pointed to by those arguments not pass the extra __FILE__ and __LINE__ arguments. svn path=/trunk/; revision=3039
2001-02-15More paranoia - when compiling with GCC 2.x, do checks of the formatGuy Harris1-3/+8
string argument and subsequent arguments to "ErrorMsg()". Fix up the bugs the checks in question found. svn path=/trunk/; revision=3038
2001-02-15Change "lemon" *NOT* to cast pointers to "int", as that doesn't work onGuy Harris1-363/+232
LP64 platforms. Change "lemon" to use function prototypes and the official ANSI C style of variable-argument-list functions, and to include various system header files rather than to use non-prototype declaration of various system functions, to do a lot more type checking. svn path=/trunk/; revision=3037
2001-02-04Add a "-f" flag to the "rm", so that "make clean" won't get an errorGuy Harris1-1/+1
(and cause a higher-level "make clean" to stop) if any of the files to be removed aren't there. svn path=/trunk/; revision=2991
2001-02-02Add Makefile.nmake files for new subdirs.Gilbert Ramirez4-2/+27
Add them to EXTRA_DIST in corresponding Makefile.am's so that they get packaged with the distribution. svn path=/trunk/; revision=2979
2001-02-01Rename the "optarg()" and "opterr()" functions to "get_optarg()" andGuy Harris1-31/+42
"get_opterr()" so they don't collide with "getopt()"s "optarg" and "opterr" globals (Solaris 2.6's <stdio.h> declares both "optarg" and "opterr", causing "lemon.c" not to compile). Define "safe_isXXX()" macros to call "isXXX()" after casting the argument to "unsigned char" to handle characters with the 8th bit set. Make some "int" variables used only to hold characters "char" instead. svn path=/trunk/; revision=2970
2001-02-01Create a more modular type system for the FT_* types. Put themGilbert Ramirez10-0/+5739
into epan/ftypes. Re-write display filter routines using Lemon parser instead of yacc. Besides using a different tool, the new grammar is much simpler, while the display filter engine itself is more powerful and more easily extended. Add dftest executable, to test display filter "bytecode" generation. Add option to "configure" to build dftest or randpkt, both of which are not built by default. Implement Ed Warnicke's ideas about dranges in the new display filter and ftype code. Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree, while FT_PROTOCOL is used for protocols. This was necessary for being able to make byte slices (ranges) out of protocols, like "frame[0:3]" Win32 Makefile.nmake's will be added tonight. svn path=/trunk/; revision=2967