[openwrt/openwrt] netfilter: add kmod-nft-socket
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 27 18:46:27 PST 2022
yousong pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0225df1ec8570d144a0a8d7862036c532cc44dbd
commit 0225df1ec8570d144a0a8d7862036c532cc44dbd
Author: Yousong Zhou <yszhou4tech at gmail.com>
AuthorDate: Thu Feb 24 05:47:11 2022 +0000
netfilter: add kmod-nft-socket
Signed-off-by: Yousong Zhou <yszhou4tech 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 751fabef19..83455cc378 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -351,6 +351,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_SOCKET,CONFIG_NFT_SOCKET, $(P_XT)nft_socket),))
+
$(eval $(if $(NF_KMOD),$(call nf_add,NFT_COMPAT,CONFIG_NFT_COMPAT, $(P_XT)nft_compat),))
# userland only
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
index 85780306f3..7200af769f 100644
--- a/package/kernel/linux/modules/netfilter.mk
+++ b/package/kernel/linux/modules/netfilter.mk
@@ -1217,6 +1217,17 @@ endef
$(eval $(call KernelPackage,nft-queue))
+define KernelPackage/nft-socket
+ SUBMENU:=$(NF_MENU)
+ TITLE:=Netfilter nf_tables socket support
+ DEPENDS:=+kmod-nft-core +kmod-nf-socket
+ FILES:=$(foreach mod,$(NFT_SOCKET-m),$(LINUX_DIR)/net/$(mod).ko)
+ AUTOLOAD:=$(call AutoProbe,$(notdir $(NFT_SOCKET-m)))
+ KCONFIG:=$(KCONFIG_NFT_SOCKET)
+endef
+
+$(eval $(call KernelPackage,nft-socket))
+
define KernelPackage/nft-compat
SUBMENU:=$(NF_MENU)
TITLE:=Netfilter nf_tables compat support
More information about the lede-commits
mailing list