- pcap library (libpcap)
# CC=arm-linux-gcc LD=arm-linux-ld ac_cv_linux_vers=2 ./configure --prefix=/usr/local/arm-network --host=arm-linux --with-pcap=linux
# make
# make install
- libnet
# ./configure --prefix=/usr/local/arm-network --build=i686-linux --host=arm-linux
vi include/libnet.h 수정
#define 1 --> #define LIBNET_LIL_ENDIAN 1로 수정
vi include/config.h
#define HAVE_PACKET_SOCKET 1 (when compile with gcc3.2 !)
# make
# make install
pcap和libnet编译
最新推荐文章于 2022-07-14 17:33:36 发布