Ethereal-dev: RE: [Ethereal-dev] Support for PCRE pattern matching in dfilters

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Thu, 4 Dec 2003 08:36:12 +0100
| From: Guy Harris
| 
| On Dec 2, 2003, at 2:06 PM, Biot Olivier wrote:
| 
| > Attached patch implements Perl Compatible Regular Expressions in 
| > Ethereal
| > display filters with the "matches" operation. The patch includes all
| > required autotools gizmos, and libpcre is not required but will be 
| > looked
| > for if available (similar to zlib support).
| 
| So if libpcre isn't available, the "matches" operator isn't supported?

Not really. I decided to have the "matches" operator always available to the
dfilter grammar and syntax, but to conditionally attach the cmp_matches()
function to the relevant ftype-X.c files (actually it's only implmented for
FT_STRING and similar, all defined in ftype-string.c).

Maybe I can try to conditionally allow the "matches" operator. This'll need
some #ifdef HAVE_LIBPCRE ... #endif stuff around my changes in
epan/dfilter/.

Should I also do this in the different ftype-* files and ftype-int.h, or is
it OK to leave the cmp_matches() entry in the struct?

Regards,

Olivier