aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
AgeCommit message (Collapse)AuthorFilesLines
2012-02-29From Gilbert Ramirez: When filtering on a single-byte byte-array-slice, ↵Anders Broman4-14/+75
using a normal hex string would be nice svn path=/trunk/; revision=41232
2012-02-24CVARSDLL hasn't been used (is undefined) for a while....Bill Meier1-2/+2
svn path=/trunk/; revision=41180
2012-02-02Include config.h in preparation of moving the definitionJörg Mayer1-0/+4
of _U_ from the compiler command line into config.h svn path=/trunk/; revision=40806
2012-01-29Add *.sbr files to the clean target.Anders Broman1-1/+1
svn path=/trunk/; revision=40762
2012-01-21Sync checkapi target with Makefile.nmake.Michael Tüxen1-0/+5
svn path=/trunk/; revision=40629
2012-01-04More C++ updates.Gerald Combs1-1/+8
svn path=/trunk/; revision=40377
2011-11-15Get rid of the depth argument to dfilter_macro_apply(); have an internalGuy Harris3-114/+120
routine that does all the work and that takes a depth argumen, and an external routine that calls that internal routine with a depth argument of 0. The depth is only of use internally, to avoid infinite recursion. When recursing with that routine, pass depth+1 as the depth value, rather than passing depth and incrementing it afterwards; the latter doesn't prevent infinite recursion. (Thanks and a tip of the hat to Clang Cat for catching this.) Squelch some other (harmless) warnings from Clang Cat. Clean up indentation. svn path=/trunk/; revision=39838
2011-10-28Prefer previous error message if not having hfinfo->strings,Stig Bjørlykke1-7/+6
because this may give more interesting information. svn path=/trunk/; revision=39658
2011-10-25Fix Coverity CID 432, "Missing Break".Chris Maynard1-1/+1
svn path=/trunk/; revision=39564
2011-09-07From Jakub Zawadzki :Anders Broman1-1/+1
Add support for prefix in IPv6 address filter. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5538 svn path=/trunk/; revision=38916
2011-08-23Remove support for libpcre, we use GRegex in GLib.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=38683
2011-07-11More GLIB_CHECK_VERSION cleanups. Update the minimum GLib/GTK+ versionsGerald Combs1-7/+1
in README.devloper. Remove g_gnuc.h since it's no longer needed. Remove tvbuff_init(), tvbuff_cleanup(), reassemble_init(), and reassemble_cleanup() since they were only used for older GLib versions which didn't support GSlices. Assume we always support the "matches" operator. svn path=/trunk/; revision=37978
2011-07-05Add some additional routine variants that handle string encodings, andGuy Harris1-3/+0
make FT_STRING and FT_UINT_STRING handle string encodings. Get rid of FT_EBCDIC in favor of FT_STRING with ENC_EBCDIC. Add some URLs for DRDA. Clean up some stuff in TN3270 and TN5250, including using ENC_ values for proto_tree_add_item(). svn path=/trunk/; revision=37909
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-1/+1
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-05-17Squelch a narrowing warning.Guy Harris1-1/+1
svn path=/trunk/; revision=37227
2011-05-08Add FT_EUI64 Field TypeAlexis La Goutte1-0/+4
* Remove proto_tree_add_eui64 function from 802.15.4 Dissector * Replace print_eui64/print_eui64 by eui64_to_str/get_eui64_name * Update Documentation (README.dev) * Add new function in libwireshark.def * Support of encoding for tvb_eui64_to_str * Use FT_EUI64 for ICMPv6, CAPWAP, Zbee ... dissector svn path=/trunk/; revision=37015
2011-05-06Use strtoul() rather than sscanf to parse octal and hex numbers inGuy Harris1-4/+4
escape sequences; sscanf is a bit heavyweight, and using strtoul() also squelches some "return value ignored" warnings. svn path=/trunk/; revision=37007
2011-04-27From Yaniv Kaul: some 'set but not used' compilation fixes;Bill Meier1-21/+16
From me: Use consistent indentation in the source file. svn path=/trunk/; revision=36887
2011-04-23Back out previous change - I guess the Solaris buildbot has a pre-2.5.30Guy Harris1-19/+17
flex. svn path=/trunk/; revision=36833
2011-04-23Try putting the include of config.h at the top of the generated scanner,Guy Harris1-17/+19
so that the config.h definitions are available before we include anything else; that way, for example, anything defined to enable large-file support will be defined before we include any system header files that might depend on it. svn path=/trunk/; revision=36832
2011-04-04Don't assign to a variable if the value won't be used: Coverity 817-821.Bill Meier2-4/+4
svn path=/trunk/; revision=36446
2011-02-17It wasn't complaining about that null pointer reference.Guy Harris1-1/+1
svn path=/trunk/; revision=35981
2011-02-17Oops, wrong pointer comparison.Guy Harris1-2/+3
svn path=/trunk/; revision=35976
2011-02-17OK, let's try a couple more explicit checks against NULL, to see whetherGuy Harris2-2/+2
that de-confuses Microsoft's code analyzer. svn path=/trunk/; revision=35975
2011-02-02A bit of Windows makefiles rework and cleanup:Bill Meier1-4/+6
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile; a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS; b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake) (This allows disabling "Warnings as Errors" by just changing config.nmake) c. CVARSDLL definitions (not usage) have been removed from the various makefiles. XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since: -DWIN32 and -DNULL=0 do not appear to be needed (any more); -D_MT and _D_DLL are not needed since /MP causes these definitions. d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled. E.G., 4295: array is too small to include a terminating null character - config.nmake: reformat some long lines for readability; - plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile); - dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ... svn path=/trunk/; revision=35747
2011-01-22From Johannes Lange via ↵Jeff Morriss1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5606 : In semcheck.c the display filter string of an expression is checked against the header_field_info.display value BASE_CUSTOM. But the value of BASE_CUSTOM is applied as bitmask while the actual type is an enum (BASE_CUSTOM = 6). With this BASE_DEC, BASE_DEC_HEX and BASE_HEX_DEC are also matching and are not accepted as filter expression. Actually: BASE_DEC works but not BASE_HEX. And the problem only shows up when trying to match a field in one of these bases against a string (from a value_string). svn path=/trunk/; revision=35621
2010-12-03Fix a problem noticed in ↵Jeff Morriss1-0/+11
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5380#c2 : Don't attempt to use a BASE_CUSTOM field's 'strings' field as a value_string: it's not, it's a pointer to a function. svn path=/trunk/; revision=35115
2010-11-30Oh yeah, there's a reason we don't put targets in Makefile.common: the first ↵Jeff Morriss3-11/+11
target in a makefile is what you get when you just run make (without a target). Revert 35073 and 35069. svn path=/trunk/; revision=35075
2010-11-29Move some checkapi targets into Makefile.commonJeff Morriss3-11/+11
svn path=/trunk/; revision=35073
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofGuy Harris1-1/+1
the callbacks we have use that argument - is it really needed?). svn path=/trunk/; revision=34694
2010-10-14Rework "extended value strings":Bill Meier1-2/+1
- Allow direct access when a range of values begins with a value other than 0; - Provide value_string_ext_new() for creating extended value strings at runtime; - Do access to value_string_ext members via a macro (all but value_string.c); - Update documentation. svn path=/trunk/; revision=34514
2010-08-30Call dfilter_macro_uat->post_update_cb instead of using cfile.Stig Bjørlykke1-4/+3
svn path=/trunk/; revision=34012
2010-08-30Always update the display filter when changing a display filter macroStig Bjørlykke1-1/+6
and when changing profile. Not sure why I have to invalidate cfile.dfilter in macro_update(), because this will be done in macros_post_update(), but unless this we get a crash when renaming a macro... This is a fix for bug 5002. svn path=/trunk/; revision=34011
2010-08-29Doxygen changes.Anders Broman1-1/+4
svn path=/trunk/; revision=33990
2010-04-30Fix up indentation a bitJeff Morriss1-11/+11
svn path=/trunk/; revision=32617
2010-04-27From Jakub Zawadzki:Anders Broman1-0/+4
Itroduce value_string_ext for faster value matching in value_strings. svn path=/trunk/; revision=32574
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+1
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2010-01-19Use more unique names for certain enum constants.Bill Meier4-21/+21
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
2009-12-18If we don't have PCRE and we do have GLib >= 2.14, use GRegexes for theGerald Combs1-7/+7
"matches" operator. svn path=/trunk/; revision=31302
2009-10-26Try to parse unparsed token in accordance with fieldtype of all fileds with ↵Tomas Kukosa1-5/+16
the same name. svn path=/trunk/; revision=30705
2009-10-18Neither num_registers nor max_registers in a dfilter_t are everGuy Harris2-3/+3
negative; make them unsigned. svn path=/trunk/; revision=30612
2009-10-18Fixed a data type and removed a shadowed variable.Stig Bjørlykke1-3/+1
svn path=/trunk/; revision=30610
2009-10-11Creatig static sublibs was not a good idea:Jörg Mayer1-53/+0
========================================================================= "du -s build" with sublibs: 396868 build ----------------------------------- "du -s build" without sublibs: 197588 build/ ========================================================================= tshark with sublibs: -rwxr-xr-x 1 jmayer users 27399706 2009-10-11 08:39 tshark* ----------------------------------- tshark without sublibs: -rwxr-xr-x 1 jmayer users 226748 2009-10-11 09:05 tshark* ========================================================================= So undo the following patches: ------------------------------------------------------------------------ r30459 | krj | 2009-10-10 07:08:48 +0200 (Sa, 10 Okt 2009) | 1 line Sort subdirectories alphabetically ------------------------------------------------------------------------ r30458 | krj | 2009-10-10 07:03:36 +0200 (Sa, 10 Okt 2009) | 1 line Add epan/dissectors/CMakeLists.txt which creates a static dissectors library ------------------------------------------------------------------------ --> readd!! *** r30443 | krj | 2009-10-09 21:43:42 +0200 (Fr, 09 Okt 2009) | 1 line Rename DISSECTOR_ASM_UTILS to LIBWIRESHARK_ASM_FILES since these files belongs to ep an not dissectors ------------------------------------------------------------------------ r30442 | krj | 2009-10-09 21:17:26 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/ftypes/CMakeLists.txt which creates a static ftypes library ------------------------------------------------------------------------ r30441 | krj | 2009-10-09 21:13:01 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/dfilter/CMakeLists.txt which creates a static dfilter library ------------------------------------------------------------------------ r30440 | krj | 2009-10-09 21:05:29 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/crypt/CMakeLists.txt which creates a static crypt library ------------------------------------------------------------------------ r30439 | krj | 2009-10-09 20:22:22 +0200 (Fr, 09 Okt 2009) | 1 line Add epan/crc/CMakeLists.txt which creates a static crc library ------------------------------------------------------------------------ To avoid merge problems, I needed to revert r30443 as well, will readd this one in my next patch. svn path=/trunk/; revision=30494
2009-10-09Add epan/dfilter/CMakeLists.txt which creates a static dfilter libraryKovarththanan Rajaratnam1-0/+53
svn path=/trunk/; revision=30441
2009-09-01From Jakub Zawadzki via. Bug 3330:Kovarththanan Rajaratnam1-0/+10
* Fix memleak (df->deprecated in dfilter_free()) * Free protocol hash tables on cleanup. * Free protocols list on cleanup. * Free memory allocated by fgetline() in parse_services_file() From me: * proto.c: set gmc_hfinfo to NULL after free * proto.c: switch order of g_free() and g_list_remove() in proto_cleanup() svn path=/trunk/; revision=29656
2009-08-29Revert r29614 until I figure out why buildbot doesn't like itKovarththanan Rajaratnam1-3/+4
svn path=/trunk/; revision=29615
2009-08-29Use G_STRINGIFY/G_PASTEKovarththanan Rajaratnam1-4/+3
svn path=/trunk/; revision=29614
2009-08-21Handle a text NULL pointer more gracefullyKovarththanan Rajaratnam1-1/+10
svn path=/trunk/; revision=29491
2009-08-09Add PTREE_FINFO and use PITEM_FINFO when possible.Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=29355
2009-07-23From Kovarththanan Rajaratnam: avoid circular dependency.Martin Mathieson1-2/+0
svn path=/trunk/; revision=29179