aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
AgeCommit message (Collapse)AuthorFilesLines
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
2009-07-23Try to get the #includes right - take 2.Anders Broman1-0/+2
svn path=/trunk/; revision=29176
2009-07-16Move th /MP flag setting to LOCAL_CFLAGS set in configure.nmakeAnders Broman1-1/+1
for MSVC variant 2008 only. As suggested by Bill Meier. svn path=/trunk/; revision=29114
2009-07-15Add /MP flag to make use of multi cores.Anders Broman1-1/+1
svn path=/trunk/; revision=29104
2009-07-07NULL is zero on all platforms we run on.Anders Broman1-6/+0
svn path=/trunk/; revision=29003
2009-07-06Initialize memory to zero.Anders Broman1-7/+3
(is NULL = zero on all platforms?) svn path=/trunk/; revision=28955
2009-07-03From Kovarththanan Rajaratnam: Fixes for bug #3536Bill Meier1-11/+17
(plus some additional changes by me). Handle BASE_RANGE_STRING display types properly We always treat header field info strings as value_string's undiscriminated. However, if the header field info display is marked as BASE_RANGE_STRING, we need to treat them as range_string's. This wasn't properly handled in the filter expression dialog and in the filter toolbar which would cause a crash upon referencing any fields marked as BASE_RANGE_STRING. svn path=/trunk/; revision=28931
2009-06-01Removed _U_ for an used argument.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28572
2009-05-31From yami (bug 3361):Stig Bjørlykke1-24/+146
Try to resolve a crash issue when having a function on the RHS of a filter test which does not return the same type as the LHS. svn path=/trunk/; revision=28550
2009-05-26From Kovarththanan Rajaratnam: dfilter: Fix for bug #3490:Bill Meier1-0/+1
"Purify reports an uninitialized memory read in dfw_append_const() when accessing the 'next_const_id' member. This seems to be caused by dfwork_new() which doesn't properly initialize the member." svn path=/trunk/; revision=28486
2009-04-22Clean up some 64-bit issues.Guy Harris1-2/+2
svn path=/trunk/; revision=28117
2009-04-20Constify some items to squelch some compiler warnings in the WindowsGuy Harris1-1/+1
buildbot; based on a patch from Chris Maynard, with some additional changes to squelch GCC warnings on UN*X. svn path=/trunk/; revision=28093
2009-03-17Don't compile with -WX for flex-generated output, similar to what we do inGerald Combs1-1/+4
wiretap/Makefile.nmake. svn path=/trunk/; revision=27755
2009-03-16Get rid of unused routine (which gets errors when compiled on Win64).Guy Harris4-54/+0
svn path=/trunk/; revision=27740
2009-03-15Go a little deeper into the Win64 rabbit-hole. Add tools/native-nmake.cmdGerald Combs1-3/+3
and use it as a wrapper to compile a native version of lemon. Untested on Win32. svn path=/trunk/; revision=27734