Skip to content

H-BF/libnftnl

Repository files navigation

LIBNFTNL WITH nDPI SUPPORT

This is a fork of the official libnftnl library extended to support nDPI netfilter kernel module based on a fork from the netfilter ndpi.

This library implements an additional netlink interface for connecting to the ndpi kernel module

How To Compile

Prerequisites:

  • build tooling: glibc headers, gcc, autotools, automake, libtool.

  • optional: asciidoc: required for building man-page

  • optional: fpm: required for building deb or rpm packages

Configuring and compiling

  • Run "sh autogen.sh" to generate the configure script

  • ./configure [options]

    --prefix=

     The prefix to put all installed files under. It defaults to
     /usr/local, so the binaries will go into /usr/local/bin, sbin,
     manpages into /usr/local/share/man, etc.
    

    --datarootdir=

     The base directory for arch-independent files. Defaults to
     $prefix/share.
    

    --with-build-deb

     To enable build with deb package
    

    --with-build-rpm

     To enable build with rpm package
    

    --with-pkgdst=

     Path where the package will be installed. By default all will be installed into path determinated by the --prefix option
    
  • Run "make" to compile libnftnl.

  • Run "make install" to install it in the configured paths.

Configuration with package

To enable build a package just configure one of the option:

./configure --with-build-deb
make build-deb
or
./configure --with-build-rpm
make build-rpm

If you need to install a package to a specific location you have to specify the path using the --with-pkgdst option:

./configure --with-pkgdst=/opt/swarm/ --with-build-deb
make build-deb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 42

Languages