openwrt-develop / ndpi-netfilter Goto Github PK
View Code? Open in Web Editor NEWopenwrt ndpi-netfilter2 packet
License: GNU General Public License v3.0
openwrt ndpi-netfilter2 packet
License: GNU General Public License v3.0
I end up with errors like:
ar71xx/source/build_dir/target-mips_24kc_musl/linux-ath79_generic/ndpi-netfilter2-flow_info-c8ee735-2.8/ndpi-netfilter/src/../../src/include/ndpi_define.h:61:21: warning: "__LITTLE_ENDIAN" is not defined, evaluates to 0 [-Wundef]
#if __BYTE_ORDER == __LITTLE_ENDIAN
^~~~~~~~~~~~~~~
When applying the latest module (version 3.2 with the commit id : b3fa670) - getting the following error in dmesg.
vmap allocation for size 589824 failed: use vmalloc= to increase size.
and when the traffic passes through the iptables rule, it crashes and the AP hangs. Need to reboot it
Please help
期待更新
Can someone help create the latest makefile
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ndpi-netfilter
PKG_VERSION:=flow_info-6e6cdf0-3.2
PKG_RELEASE:=1
PKG_REV:=6e6cdf0
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/vel21ripn/nDPI.git
PKG_SOURCE_VERSION:=$(PKG_REV)
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/iptables-mod-ndpi
SUBMENU:=Firewall
SECTION:=net
CATEGORY:=Network
TITLE:=ndpi successor of OpenDPI
URL:=http://www.ntop.org/products/ndpi/
DEPENDS:=+iptables +iptables-mod-conntrack-extra +kmod-ipt-ndpi
MAINTAINER:=Thomas Heil [email protected]
endef
define Package/iptables-mod-ndpi/description
nDPI is a ntop-maintained superset of the popular OpenDPI library
endef
#CONFIGURE_CMD=./autogen.sh
CONFIGURE_ARGS += --with-pic
MAKE_PATH:=ndpi-netfilter
MAKE_FLAGS +=
KERNEL_DIR="$(LINUX_DIR)"
MODULES_DIR="$(TARGET_MODULES_DIR)"
ARCH="$(LINUX_KARCH)"
CROSS_COMPILE="$(TARGET_CROSS)"
NDPI_PATH=$(PKG_BUILD_DIR)/ndpi-netfilter
define Build/Configure
( cd $(PKG_BUILD_DIR); ./autogen.sh )
$(call Build/Configure/Default)
endef
define Build/Compile
(cd $(PKG_BUILD_DIR)/src/lib &&
gcc -g -O2 -fPIC -DPIC -DNDPI_LIB_COMPILATION -I../../src/include/ -I../../src/lib/third_party/include/ ndpi_network_list_compile.c -o ndpi_network_list_compile &&
./ndpi_network_list_compile -o ndpi_network_list.c.inc ndpi_network_list_std.yaml ndpi_network_list_tor.yaml)
make
endef
define Package/iptables-mod-ndpi/install
endef
define KernelPackage/ipt-ndpi
SUBMENU:=Netfilter Extensions
TITLE:= nDPI net netfilter module
DEPENDS:=+kmod-nf-conntrack +kmod-nf-conntrack-netlink +kmod-ipt-compat-xtables +kmod-ipt-conntrack-label
KCONFIG:=CONFIG_NF_CONNTRACK_LABELS=y
FILES:=
$(PKG_BUILD_DIR)/ndpi-netfilter/src/xt_ndpi.ko
AUTOLOAD:=$(call AutoProbe,xt_ndpi)
endef
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.