summaryrefslogtreecommitdiff
path: root/epan/dfilter
AgeCommit message (Collapse)AuthorFilesLines
2013-11-12Replace fvalue_ftype() with a fvalue_type_ftenum() routine that returnsGuy Harris1-2/+2
the ftenum_t for the fvalue's ftype, rather than a pointer to the ftype (which isn't all that useful except as a handle, unless you import the internal header). Have fvalue_to_string_repr() return NULL, rather than failing, if the fvalue's ftype has no val_to_string_repr method. This lets us not include the ftypes internal header in ui/cli/tap-diameter-avp.c. svn path=/trunk/; revision=53290
2013-11-10Add missing includes in order to remove exceptions.h from proto.h (next commit).Jakub Zawadzki1-0/+2
svn path=/trunk/; revision=53230
2013-11-10Move struct _ftype_t + callback typedefs + free macro to ftypes-int.hJakub Zawadzki4-0/+5
svn path=/trunk/; revision=53223
2013-10-25Add a very small hack to make the UAT update callback error string freeable, andEvan Huus1-1/+1
convert all existing UAT update callbacks to use glib memory instead of ephemeral memory for that string. UAT code paths are entirely distinct from packet dissection, so using ephemeral memory was the wrong choice, because there was no guarantees about when it would be freed. The move away from emem still needs to be propogated deeper into the UAT code itself at some point. Net effect: remove another bunch of emem calls from dissectors, where replacing with wmem would have caused assertions. svn path=/trunk/; revision=52854
2013-10-18Revert SVN #52650 as per discussion on wireshark-devBill Meier1-2/+1
svn path=/trunk/; revision=52671
2013-10-16Prepend to lists rather than append as that's more efficient.Anders Broman1-1/+2
svn path=/trunk/; revision=52650
2013-10-06Add support for RELATIVE-OID ASN.1 type. Bug 9192 ↵Michael Mann1-1/+4
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192) From Ed Beroset. svn path=/trunk/; revision=52393
2013-08-10dfilter: report warning if OR and AND logic operands are mixed without ↵Jakub Zawadzki6-12/+42
parentheses. svn path=/trunk/; revision=51247
2013-08-06Replace hfinfo pointer to same_name_prev, with same_name_prev_id.Jakub Zawadzki2-6/+6
svn path=/trunk/; revision=51175
2013-07-28dfilter: move convertion to byte to seperate functionJakub Zawadzki1-33/+23
svn path=/trunk/; revision=50964
2013-07-28Make many items filterable for Vines dissectors.Michael Mann1-1/+4
Add support for FT_VINES type. svn path=/trunk/; revision=50962
2013-07-27Support drange for functionsJakub Zawadzki2-5/+16
last think from bug #8979 + fix semcheck.c:875: warning: signed and unsigned type in conditional expression svn path=/trunk/; revision=50951
2013-07-27Some more work related to bug #8979 and previous commitJakub Zawadzki1-7/+16
- Make http.location[0:4] == lower(http.location) behave the same as lower(http.location) == http.location[0:4] - fix compiler errors + comments svn path=/trunk/; revision=50950
2013-07-27Fix bug #8979: Comparing function call and a range in the filter crashes ↵Jakub Zawadzki4-38/+68
Wireshark store whole node, don't assume it's always STTYPE_FIELD svn path=/trunk/; revision=50949
2013-07-26Follow-up to r50935: add support for 64-bit value strings in more places thatEvan Huus1-2/+26
need it, I think this is all of them. svn path=/trunk/; revision=50941
2013-07-15Move report_err.{h,c} from epan into wsutil: there's nothing epan-specific ↵Jeff Morriss2-2/+0
there and moving it avoids having to recompile the file for use in editcap and capinfos (which don't link against libwireshark). svn path=/trunk/; revision=50598
2013-06-25makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.Chris Maynard1-2/+2
svn path=/trunk/; revision=50140
2013-06-19Add a comment about how it would nice for display filter macro fieldsMartin Mathieson1-1/+4
to use auto-completion, but that it won't work because the string contains the $1, etc placeholders... svn path=/trunk/; revision=50038
2013-06-04Add new dfilter function: size()Jakub Zawadzki1-0/+44
Make it return fvalue_length() of field. [XXX, rename len() to strlen(), and size() to len()?!] svn path=/trunk/; revision=49771
2013-05-20Make the minimum supported GLib version 2.16.Gerald Combs1-4/+0
svn path=/trunk/; revision=49444
2013-03-19From beroset:Anders Broman3-5/+5
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48424
2013-03-17From beroset:Anders Broman1-1/+1
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48355
2013-03-12From David Arnold:Jaap Keuter1-1/+1
Replace use of INCLUDES with AM_CPPFLAGS in all Makefiles to placate recent autotools. svn path=/trunk/; revision=48261
2013-03-05type drange -> drange_tAnders Broman10-47/+47
explicit casts. svn path=/trunk/; revision=48083
2013-03-02Try to fix LNK4217 (locally defined symbol imported in function) and C4273 ↵Pascal Quantin1-2/+3
(inconsistent DLL linkage) warnings when compiling for Windows svn path=/trunk/; revision=48021
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey4-2/+15
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-12Fix the grammar.h/grammar.c/grammar.lemon dependency so thatGilbert Ramirez1-2/+2
grammar.h is not always out of date. Use the same pattern as in the Makefile.nmake files svn path=/trunk/; revision=47643
2013-02-10Add %option noinput to a bunch of Flex files, as we aren't using theGuy Harris1-0/+5
input() routine and thus don't need to have it generated - and as it produces warnings of a routine defined but not used, we don't want to have it generated. Squelch a casting-const-away warning. svn path=/trunk/; revision=47613
2013-02-09Put NODIST_ at the beginning of macro names, as was done for the pluginsGuy Harris3-12/+12
directory. svn path=/trunk/; revision=47599
2013-02-05Include generated C files that we're *not* distributing.Guy Harris1-2/+9
svn path=/trunk/; revision=47489
2013-02-05Don't distribute the results of running Lemon, as we distribute LemonGuy Harris2-11/+27
ourselves. Clean up various bits of "distribute" vs. "don't distribute" stuff in the process - use similar names, and make the "distribute vs. don't distribute" distinction the same as the "don't clean with "make distclean" vs. clean with "make distclean"" distinction. svn path=/trunk/; revision=47485
2013-02-04Unwrap lines inadvertenly wrapped in r47472Gerald Combs1-14/+22
svn path=/trunk/; revision=47473
2013-02-04More silent build support.Gerald Combs1-27/+14
svn path=/trunk/; revision=47472
2013-02-04Prettify more build output.Gerald Combs1-1/+6
svn path=/trunk/; revision=47469
2013-02-01Enable more build silence.Gerald Combs1-1/+1
svn path=/trunk/; revision=47432
2013-02-01Go far enough down a rabbit hole and you will encounter libtool. SeeGerald Combs1-1/+1
if changing .o to .lo works. svn path=/trunk/; revision=47430
2013-02-01Change some "<x>.c : <y>.h" rules to "<x>.o : <y>.h" in order to fixGerald Combs1-3/+3
distcheck. Add some rules recommended by the Automake manual in order to avoid duplicate actions. svn path=/trunk/; revision=47429
2013-01-04replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned ↵Michael Mann1-1/+1
int" instead. bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825) svn path=/trunk/; revision=46928
2012-12-26Fix a bunch of warnings.Guy Harris2-9/+9
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-11-06When comparing fvalue_t we don't modify them, make arguments const.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=45948
2012-09-20As suggested by Xavier Raynaud in ↵Jeff Morriss2-6/+9
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6425 : scanner.c includes (depends on) grammar.h so mark it so in the Makefiles. svn path=/trunk/; revision=45020
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss14-29/+1
svn path=/trunk/; revision=45016
2012-09-01Add modelines and make indentation consistent.Evan Huus1-128/+141
svn path=/trunk/; revision=44730
2012-08-02From Richard Stearn: support for AX.25, including support forGuy Harris1-1/+4
LINKTYPE_AX25. svn path=/trunk/; revision=44211
2012-07-26dfilter.h does not need to include epan.hJörg Mayer1-1/+0
svn path=/trunk/; revision=44044
2012-07-23Combine the two display filter README's into one,Gilbert Ramirez1-107/+0
and add a lot of explanation about how the display filter engine works. Modify dftest.c to remove printing of the dfilter_t pointer, which has absolutely no value for the user. svn path=/trunk/; revision=43941
2012-07-08UATs could be put into "categories". The categories were defined onlyGuy Harris1-1/+1
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. svn path=/trunk/; revision=43603
2012-06-29Add len() function to dfilter. For now only support FT_STRING*Jakub Zawadzki1-3/+35
Note: it returns bytes-length, not number of UTF-8 characters. svn path=/trunk/; revision=43541
2012-06-29Also support FT_STRINGZ and FT_UINT_STRING in lower()/ upper() functions.Jakub Zawadzki1-1/+3
svn path=/trunk/; revision=43540
2012-06-28Update Free Software Foundation address.Jakub Zawadzki27-27/+27
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536