Skip to content

Commit

Permalink
Added nBPF library
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 1, 2023
1 parent ff80473 commit 676a652
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions configure.ac.in
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,16 @@ if test -d "pro"; then :
AC_MSG_RESULT(yes)
PRO_OBJECTS='$(patsubst pro/%.cpp, pro/%.o, $(wildcard pro/*.cpp)) $(patsubst pro/flow_checks/%.cpp, pro/flow_checks/%.o, $(wildcard pro/flow_checks/*.cpp)) $(patsubst pro/host_checks/%.cpp, pro/host_checks/%.o, $(wildcard pro/host_checks/*.cpp))'

if test "${with_nedge+set}" != set; then
if test $SYSTEM = "FreeBSD" || test $SYSTEM = "Darwin" || test $MACHINE = "armv7l" || test $MACHINE = "aarch64"; then
if test -d "../PF_RING"; then
cd ../PF_RING/userland/; ./configure; cd ./nbpf; ${MAKE}; cd ${HERE}
LIBS="${LIBS} -L../PF_RING/userland/nbpf -lnbpf"
else
echo "Missing ../PF_RING: please fetch PF_RING code from https://github.com/ntop/PF_RING and try again"
exit
fi
fi
AC_MSG_CHECKING([PF_RING nBPF])
NBPF_HOME=${PWD}/../PF_RING/userland/nbpf
LIBNBPF=${NBPF_HOME}/libnbpf.a
if test -f ${LIBNBPF}; then :
LIBS="${LIBS} ${LIBNBPF}"
CFLAGS="${CFLAGS} -I${NBPF_HOME}"
AC_DEFINE_UNQUOTED(HAVE_NBPF, "1", [PF_RING nBPF is present])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi

CFLAGS="${CFLAGS} -I../PF_RING/userland/nbpf"
Expand Down

0 comments on commit 676a652

Please sign in to comment.