aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorMichał Kwiatek <michal@kwiatek.it>2023-05-18 21:40:24 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-05-31 23:07:55 +0200
commit9c45c58c7c57f91c7e525f1580a67d52cde27372 (patch)
treed3c8e95cd8817e8bc882aef0dde884c2db0b7d2a /package/kernel/linux
parent478a3e609fec5034ab5acef54deb2f7907eebfbc (diff)
downloadupstream-9c45c58c7c57f91c7e525f1580a67d52cde27372.tar.gz
upstream-9c45c58c7c57f91c7e525f1580a67d52cde27372.tar.bz2
upstream-9c45c58c7c57f91c7e525f1580a67d52cde27372.zip
netfilter: add kmod-nft-dup-inet
Add kmod-nft-dup-inet package to allow packet duplication in ip/ip6/inet nftables family Signed-off-by: Michał Kwiatek <michal@kwiatek.it> (cherry picked from commit a7e9445975f832db887e6044d7e84220d2a68cf1)
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/netfilter.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk
index 99a48a37d4..e6dc400b30 100644
--- a/package/kernel/linux/modules/netfilter.mk
+++ b/package/kernel/linux/modules/netfilter.mk
@@ -1,6 +1,6 @@
#
-# Copyright (C) 2006-2010 OpenWrt.org
+# Copyright (C) 2006-2023 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -1147,6 +1147,26 @@ endef
$(eval $(call KernelPackage,nft-bridge))
+define KernelPackage/nft-dup-inet
+ SUBMENU:=$(NF_MENU)
+ TITLE:=Netfilter nf_tables dup in ip/ip6/inet familly support
+ DEPENDS:=+kmod-nft-core +kmod-nf-conntrack +IPV6:kmod-nf-conntrack6
+ KCONFIG:= \
+ CONFIG_NF_DUP_IPV4 \
+ CONFIG_NF_DUP_IPV6 \
+ CONFIG_NFT_DUP_IPV4 \
+ CONFIG_NFT_DUP_IPV6
+ FILES:= \
+ $(LINUX_DIR)/net/ipv4/netfilter/nf_dup_ipv4.ko \
+ $(LINUX_DIR)/net/ipv6/netfilter/nf_dup_ipv6.ko \
+ $(LINUX_DIR)/net/ipv4/netfilter/nft_dup_ipv4.ko \
+ $(LINUX_DIR)/net/ipv6/netfilter/nft_dup_ipv6.ko
+ AUTOLOAD:=$(call AutoProbe,nf_dup_ipv4 nf_dup_ipv6 nft_dup_ipv4 nft_dup_ipv6)
+endef
+
+$(eval $(call KernelPackage,nft-dup-inet))
+
+
define KernelPackage/nft-nat
SUBMENU:=$(NF_MENU)
TITLE:=Netfilter nf_tables NAT support