[openwrt/openwrt] netfilter: add kmod-nft-compat
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 2 15:14:16 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1ebb8e3b6be8ed070dcb466fc8d1631e5453df72
commit 1ebb8e3b6be8ed070dcb466fc8d1631e5453df72
Author: Etienne Champetier <champetier.etienne at gmail.com>
AuthorDate: Thu Jan 27 16:00:21 2022 -0500
netfilter: add kmod-nft-compat
This modules is required by iptables-nft
Signed-off-by: Etienne Champetier <champetier.etienne at gmail.com>
---
include/netfilter.mk | 2 ++
package/kernel/linux/modules/netfilter.mk | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/include/netfilter.mk b/include/netfilter.mk
index 65e8e3b8f0..4602a1d412 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -350,6 +350,8 @@ $(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB_IPV6, $(P_V6)nft_fib
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_QUEUE,CONFIG_NFT_QUEUE, $(P_XT)nft_queue),))
+$(eval $(if $(NF_KMOD),$(call nf_add,NFT_COMPAT,CONFIG_NFT_COMPAT, $(P_XT)nft_compat),))
+
# userland only
IPT_BUILTIN += $(NF_IPT-y) $(NF_IPT-m)
IPT_BUILTIN += $(IPT_CORE-y) $(IPT_CORE-m)
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
index f204b257d1..75a06fb651 100644
--- a/package/kernel/linux/modules/netfilter.mk
+++ b/package/kernel/linux/modules/netfilter.mk
@@ -1179,3 +1179,14 @@ define KernelPackage/nft-queue
endef
$(eval $(call KernelPackage,nft-queue))
+
+define KernelPackage/nft-compat
+ SUBMENU:=$(NF_MENU)
+ TITLE:=Netfilter nf_tables compat support
+ DEPENDS:=+kmod-nft-core +kmod-nf-ipt
+ FILES:=$(foreach mod,$(NFT_COMPAT-m),$(LINUX_DIR)/net/$(mod).ko)
+ AUTOLOAD:=$(call AutoProbe,$(notdir $(NFT_COMPAT-m)))
+ KCONFIG:=$(KCONFIG_NFT_COMPAT)
+endef
+
+$(eval $(call KernelPackage,nft-compat))
More information about the lede-commits
mailing list