Netmap

From VoIPmonitor.org
Jump to navigation Jump to search

debian 7

apt-get install build-essential git linux-headers-amd64
apt-get build-dep libpcap
cd /usr/src
git clone https://code.google.com/p/netmap/
cd LINUX make insmod netmap_lin.ko
mkdir /usr/local/include/net
cp ../sys/net/netmap* /usr/local/include/net/
cd /usr/src/
wget http://www.tcpdump.org/release/libpcap-1.5.3.tar.gz
tar xzf libpcap-1.5.3.tar.gz
cd libpcap* patch -p1 < ../netmap/extra/libpcap-netmap.diff 
fix FAILED
./configure
make
make install
cd ..
wget http://www.tcpdump.org/release/tcpdump-4.5.1.tar.gz
tar xzf tcpdump-4.5.1.tar.gz
cd tcpdump*
./configure
make
make install
tcpdump -i netmap:eth2 -n