blob: 2283cac42b9f18c38a5ebbec551d235aa29e0c4c [file] [log] [blame]
diff --git a/package/libs/libnfnetlink/patches/101-flowtable-support.patch b/package/libs/libnfnetlink/patches/101-flowtable-support.patch
new file mode 100644
index 00000000..2ba78022
--- /dev/null
+++ b/package/libs/libnfnetlink/patches/101-flowtable-support.patch
@@ -0,0 +1,12 @@
+Index: libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h
+===================================================================
+--- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h 2008-06-18 20:36:57.000000000 +0800
++++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h 2019-08-30 18:04:36.026372012 +0800
+@@ -47,6 +47,7 @@
+ #define NFNL_SUBSYS_QUEUE 3
+ #define NFNL_SUBSYS_ULOG 4
+ #define NFNL_SUBSYS_COUNT 5
++#define NFNL_SUBSYS_FLOWTABLE 12
+
+ #ifdef __KERNEL__
+
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
index 97153e5c..e30484b7 100644
--- a/package/kernel/linux/modules/netfilter.mk
+++ b/package/kernel/linux/modules/netfilter.mk
@@ -161,6 +161,18 @@ endef
$(eval $(call KernelPackage,nf-flow))
+define KernelPackage/nf-flow-netlink
+ SUBMENU:=$(NF_MENU)
+ TITLE:=Netfilter flowtable netlink support
+ KCONFIG:= \
+ CONFIG_NF_FLOW_TABLE_NETLINK
+ DEPENDS:=+kmod-nf-flow +kmod-nfnetlink
+ FILES:= \
+ $(LINUX_DIR)/net/netfilter/nf_flow_table_netlink.ko
+ AUTOLOAD:=$(call AutoProbe,nf_flow_table_netlink)
+endef
+
+$(eval $(call KernelPackage,nf-flow-netlink))
define AddDepends/ipt
SUBMENU:=$(NF_MENU)