diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2003-08-27 15:23:11 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2003-08-27 15:23:11 +0000 |
commit | 52338a3bafa30b1c1ea6759ea14a60c5d3fd35da (patch) | |
tree | a4104c638529709d8c4f8b869d76c7f5253c6d16 /epan/ftypes/ftype-double.c | |
parent | d3562c0480240333a99315699992e3165702a369 (diff) | |
download | wireshark-52338a3bafa30b1c1ea6759ea14a60c5d3fd35da.tar.gz |
Add a "contains" operator for byte-strings, strings, and tvbuffs (protocols).
The search uses a naive approach; more work is required to add a
Boyer-Moore Search algorithm.
svn path=/trunk/; revision=8280
Diffstat (limited to 'epan/ftypes/ftype-double.c')
-rw-r--r-- | epan/ftypes/ftype-double.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c index fb1bfcd36f..27fba9aaf4 100644 --- a/epan/ftypes/ftype-double.c +++ b/epan/ftypes/ftype-double.c @@ -1,5 +1,5 @@ /* - * $Id: ftype-double.c,v 1.10 2003/07/31 03:52:43 guy Exp $ + * $Id: ftype-double.c,v 1.11 2003/08/27 15:23:06 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -51,7 +51,7 @@ value_get_floating(fvalue_t *fv) } static gboolean -val_from_unparsed(fvalue_t *fv, char *s, LogFunc logfunc) +val_from_unparsed(fvalue_t *fv, char *s, gboolean allow_partial_value _U_, LogFunc logfunc) { char *endptr = NULL; @@ -181,6 +181,7 @@ ftype_register_double(void) cmp_ge, cmp_lt, cmp_le, + NULL, /* cmp_contains */ NULL, NULL, @@ -211,6 +212,7 @@ ftype_register_double(void) cmp_ge, cmp_lt, cmp_le, + NULL, /* cmp_contains */ NULL, NULL, |