1. clone
git clone https://github.com/mcr/libpcap.git
git clone https://github.com/mcr/tcpdump.git
2. libpacp:
rock@Padora:libpcap$ git diff ./configure
diff --git a/configure b/configure
index 2608d0d..95be0e5 100755
--- a/configure
+++ b/configure
@@ -7238,7 +7238,7 @@ echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
if test "${ac_cv_linux_vers+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_linux_vers=unknown
+ ac_cv_linux_vers=2.6.32
fi
else
$./configure --host=arm-linux --prefix=/home/rock/pkg/work/tcpdump --with-pcap=linux
$make
3. tcpdump
rock@Padora:tcpdump$ git diff ./configure
diff --git a/configure b/configure
index b66a947..4ad2007 100755
--- a/configure
+++ b/configure
@@ -4396,7 +4396,7 @@ echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6; }
if test "${ac_cv_linux_vers+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_linux_vers=unknown
+ ac_cv_linux_vers=2.6.32
fi
else
$./configure --host=arm-linux
$make
$ls tcpdump
if has "tcpdump: getsockopt: Protocol not available", check your kernelconfig CONFIG_PACKET_MMAP.