diff options
author | Rosy Song <rosysong@rosinson.com> | 2018-07-18 15:42:56 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 10:43:37 +0200 |
commit | b4d4e4ceb56825033dd4c8e401e9250ae5042a99 (patch) | |
tree | 12f7ceae67ac6da34b8f1b3f67495e388157bc0f /package/kernel/linux/modules | |
parent | 1639ebcb061abb3664e0b80f62f0019e37fda68e (diff) | |
download | upstream-b4d4e4ceb56825033dd4c8e401e9250ae5042a99.tar.gz upstream-b4d4e4ceb56825033dd4c8e401e9250ae5042a99.tar.bz2 upstream-b4d4e4ceb56825033dd4c8e401e9250ae5042a99.zip |
include: add netdev family support for nftables
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'package/kernel/linux/modules')
-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 be469fac15..6d751cc658 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)) |