system interface for user-level packet capture
libpcap (Packet CAPture) provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.
Since almost every system vendor provides a different interface for packet capture, and since there are several tools that require this functionality, we've created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.
wget
tar zxf libpcap_0.9.8.orig.tar.gz
cd libpcap-0.9.8/
mkdir _install
CC=arm-none-linux-gnueabi-gcc CFLAGS=" -march=armv4t" ac_cv_linux_vers=2.6.31 \
./configure --host=arm-none-linux-gnueabi --prefix=$PWD/_install \
--with-pcap=linux
vi Makefile #修改 YACC 中的 bison 为 yacc
make shared
make install-shared
arm-none-linux-gnueabi-strip --strip-debug --strip-unneeded _install/lib/*
阅读(1644) | 评论(0) | 转发(0) |