diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-07-18 15:42:56 +0800 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-18 10:17:23 +0100 |
commit | 7939cd49c1497593d7d39c21b6244d3456d7a6a6 (patch) | |
tree | 9396463d2cbe98005b3f14e143c513d4d66ecbf9 | |
parent | 08e73c9526f934a0015ab882c5412550ae1be180 (diff) | |
download | upstream-7939cd49c1497593d7d39c21b6244d3456d7a6a6.tar.gz upstream-7939cd49c1497593d7d39c21b6244d3456d7a6a6.tar.bz2 upstream-7939cd49c1497593d7d39c21b6244d3456d7a6a6.zip |
include: add netdev family support for nftables
Signed-off-by: Rosy Song <rosysong@rosinson.com>
(backported from b4d4e4ceb56825033dd4c8e401e9250ae5042a99)
-rw-r--r-- | package/kernel/linux/modules/netfilter.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/netfilter.mk b/package/kernel/linux/modules/netfilter.mk index 3d01ccecf8..3a989104d7 100644 --- a/package/kernel/linux/modules/netfilter.mk +++ b/package/kernel/linux/modules/netfilter.mk @@ -1052,3 +1052,23 @@ define KernelPackage/nft-nat6 endef $(eval $(call KernelPackage,nft-nat6)) + +define KernelPackage/nft-netdev + SUBMENU:=$(NF_MENU) + TITLE:=Netfilter nf_tables netdev support + DEPENDS:=+kmod-nft-core + KCONFIG:= \ + CONFIG_NETFILTER_INGRESS=y \ + CONFIG_NF_TABLES_NETDEV \ + CONFIG_NF_DUP_NETDEV \ + CONFIG_NFT_DUP_NETDEV \ + CONFIG_NFT_FWD_NETDEV + FILES:= \ + $(LINUX_DIR)/net/netfilter/nf_tables_netdev.ko \ + $(LINUX_DIR)/net/netfilter/nf_dup_netdev.ko \ + $(LINUX_DIR)/net/netfilter/nft_dup_netdev.ko \ + $(LINUX_DIR)/net/netfilter/nft_fwd_netdev.ko + AUTOLOAD:=$(call AutoProbe,nf_tables_netdev nf_dup_netdev nft_dup_netdev nft_fwd_netdev) +endef + +$(eval $(call KernelPackage,nft-netdev)) |