Commit e4933d10 authored by 's avatar
Browse files

instructions for compiling mapi with PACKET_MMAP support.

git-svn-id: file:///home/svn/mapi/trunk@1303 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 9ee312b1
......@@ -178,6 +178,31 @@ The simplest way to compile this package is:
all sorts of other programs in order to regenerate files that came
with the distribution.
The process of packet capture is very efficient when using PACKET_MMAP.
A libpcap version which supports MMAP mode on linux kernels 2.[46].x can
be found at The compilation of the library
is very easy - just follow the instructions included in the archive.
There is no need to install it in the system.
Once compiled, you have to configure mapi to be linked with the new
pcap instead of the default one. To do this, use the '--with-libpcap=DIR'
switch described above (see MAPI configure-time switches section), where
DIR is the path of the MMAP'ed libpcap.
In order to test that mapi daemon is compiled with the mmaped libpcap
just type:
PCAP_STATS=0x1fff mapid
You can change the size of the ring buffer by setting different values
to PCAP_FRAMES depending on your needs. Assuming all went well you should
start to see summary statistics which might assume some meaning after
Compilers and Options
......@@ -469,7 +469,7 @@ AS_HELP_STRING([--with-libpcap=DIR], [Manual libpcap path configuration, in case
if cd $withval; then withval=`pwd`; cd $owd; fi
PCAPINC="-I$withval -I$withval/bpf"
PCAPLIB="-L$withval -lpcap"
PCAPLIB="-L$withval $withval/libpcap.a"
AC_MSG_ERROR(pcap.h or libpcap.a not found in $withval)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment