include: add netdev family support for nftables

Signed-off-by: Rosy Song <rosysong@rosinson.com>
openwrt-19.07
Rosy Song 2018-07-18 15:42:56 +08:00 committed by John Crispin
parent 1639ebcb06
commit b4d4e4ceb5
1 changed files with 20 additions and 0 deletions

View File

@ -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))