pf_ring 编译移植
下载地址: http://sourceforge.net/projects/ntop/files/PF_RING/
编译模块:
cd kernel/
pf_ring.ko
编译libpcap
cd userland/libpcap-1.7.4 ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=i686-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --enable-shared --enable-static --disable-yydebug --with-build-cc=gcc --with-pcap=linux --without-septel --without-dag --without-libnl --without-snf --disable-can --disable-canusb --disable-dbus --disable-bluetooth --disable-bpf
vi Makefile
PF_RING_INCLUDES += -I../nbpf
../lib/libpfring.a: No such file or directory
需要 libpfring.a
编译完成: libpcap.so.1.7.4
编译libpfring.acd userland/lib ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=i686-linux-gnu --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --enable-shared --enable-static --disable-yydebug --with-build-cc=gcc --with-pcap=linux --without-septel --without-dag --without-libnl --without-snf --disable-can --disable-canusb --disable-dbus --disable-bluetooth --disable-bpf
../configure $@
configure: error: cannot run test program while cross compiling for mips-openwrt-linux target
# 将这部分 then 注释
# 编译
make CROSS_COMPILE=mips-openwrt-linux-