PF_RING is a high speed packet capture library that turns a commodity PC into an efficient and cheap network measurement box suitable for both packet and active traffic analysis and manipulation. Moreover, PF_RING opens totally new markets as it enables the creation of efficient application such as traffic balancers or packet filters in a matter of lines of codes. github : https://github.com/ntop/pf_ring official : https://www.ntop.org Signed-off-by: BangLang Huang <banglang.huang@foxmail.com> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> [rename kmod-pfring to kmod-pf-ring]
21 lines
675 B
Diff
21 lines
675 B
Diff
--- a/userland/configure
|
|
+++ b/userland/configure
|
|
@@ -3296,14 +3296,16 @@ fi
|
|
done
|
|
|
|
|
|
-MACHINE=`uname -m`
|
|
+if test -z "$MACHINE"; then
|
|
+ MACHINE=`uname -m`
|
|
+fi
|
|
CFLAGS=""
|
|
SYS_LIBS=""
|
|
|
|
VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
|
|
MAJOR_VER=`cat ../kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2 | cut -d '.' -f 1`
|
|
|
|
-NATIVE=`$CC -c -Q -march=native --help=target| grep "march" | xargs | cut -d ' ' -f 2`
|
|
+NATIVE=`$CC -c -Q --help=target| grep "march" | xargs | cut -d ' ' -f 2`
|
|
if test -f "lib/libs/libpfring_zc_x86_64_$NATIVE.a"; then
|
|
CFLAGS="-march=native -mtune=native $CFLAGS"
|
|
LIBARCH="_$NATIVE"
|