
PCRE
Install the PCRE libraries. You can get the sources from
http://www.pcre.org

Download, untar, configure, build and install
Note the locations of the installed header files and libraries.
If you do not have root privileges, use the prefix option when
configuring to specify an alternate location eg ~/pcre :
./configure --prefix=/my/install/location

APPLYING THE PATCH
Download mrt ver 2.2.2a sources from the web
http://www.mrtd.net
or
ftp.merit.edu/net-research/mrt/
Untar the tarball

tar -xzvf mrt-current-src.tar.gz

Copy the mrt patch in this distribution into the mrtd source directory
cp mrt.patch mrt-2.2.2a/src/lib/mrt/

Apply the patch

cd mrt-2.2.2a/src/lib/mrt
patch < mrt.patch

This should modify mrt.c

go to the top level of the source code tree and build  the mrt
libraries 

cd mrt-2.2.2a/src
./configure
make

Please *do not* install the patched version of mrt.
The patch disables tracing on the system call open(), and I do not
know if this will adversely affect the running of mrtd.


Download flow-tools-0.55.tar.gz from the flow-tools web page 
http://www.splintered.net/sw/flow-tools/
or
ftp.eng.oar.net/pub/flow-tools

Untar the tarball 
tar -xzvf flow-tools-0.55.tar.gz.

Copy the source code and patch in this distribution to the source directory
cp acl-filter.c acl-filter.h route_lookup.c route_lookup.h patch55 flow-tools-0.53/src/


cd into the src directory
cd flow-tools-0.55/src/

apply the patch
patch < flow-tools-0.55.patch

This should modify the following files
Makefile.am Makefile.in aclyacc.y aclex.l acl2.c acl2.h

Edit Makefile.in so that: 
	MRT points to your mrt source tree,
	PCREINC to the location of the pcre headers, 
	PCRELIB to the pcre libraries.

Rebuild the flow-tools binaries (see INSTALL in the flow-tools source tree)

cd ../
./configure
make

You should now have a new binary, acl-filter.



For instructions on its use, see Readme.acl-filter.


