Ethereal-dev: RE: [Ethereal-dev] New "matches" (PCRE support) patch

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: Sat, 6 Dec 2003 23:31:02 +0100
Hi List,

As I cannot build with MS compiler (I don't have it at hand), I can only
give hints on how this might work in that scenario:

Download the libpcre development files at:
http://gnuwin32.sourceforge.net/packages/pcre.htm

Install them the same way you would do with Zlib and other packages.

Edit the config.h files in the top-level directory and in epan, and add:

/* Define to use libpcre library */
#define HAVE_LIBPCRE 1

You'll probably have to define the linker options (for gcc this is -lpcre)
and link in the pcre library etc. This should go into config.nmake and/or in
Makefile.nmake. I'd say to look at the Zlib (or ADNS) example to get it
right.

Good Luck!

Olivier

| From: Gilbert Ramirez
| 
| On Sat, 2003-12-06 at 08:02, Biot Olivier wrote:
| > Hi list,
| > 
| > Attached you'll find a new patch that implements the 
| "matches" dfilter
| > operation. I compiled it once with and once without PCRE 
| support, to make
| > sure it works in both cases. If a "matches" operator is 
| found in a dfilter
| > while libpcre has not been used to build the binary, then I throw an
| > exception after using dfilter_fail() to set an apporporiate 
| error message.
| > 
| > Please review and check in.
| > 
| 
| Checked in.
| 
| --gilbert
|