tcpdump 源码 交叉编译
tcpdump 源码下载
wget https://www.tcpdump.org/release/tcpdump-4.99.1.tar.gz
wget https://www.tcpdump.org/release/libpcap-1.10.1.tar.gz
交叉编译libpcap
tar xvf libpcap-1.10.1.tar.gz
cd libpcap-1.10.1/
./configure --prefix=$(pwd)/.. --host=arm-linux-gnueabihf --with-pcap=linux --disable-shared
make && make install
交叉编译tcpdump
tar xvf tcpdump-4.99.1.tar.gz
cd tcpdump-4.99.1/
./configure --prefix=$(pwd)/.. --host=arm-linux-gnueabihf --with-crypto=$(pwd)/..
make && make install
如果不需要OpenSSL的话
./configure --prefix=$(pwd)/.. --host=arm-linux-gnueabihf
./tcpdump -h
compiler: hesy May 19 2022 08:51:08
tcpdump version 4.99.1
libpcap version 1.10.1 (with TPACKET_V3)
OpenSSL 1.1.1d 10 Sep 2019
tcpdump for arm 下载, 依赖OpenSSL
tcpdump for arm
本文链接地址:https://const.net.cn/710.html