netfilter: nft_tunnel: Add NFTA_TUNNEL_MODE options
authorwenxu <wenxu@ucloud.cn>
Tue, 29 Jan 2019 07:51:17 +0000 (15:51 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Feb 2019 13:39:58 +0000 (14:39 +0100)
commita46c52d9f2659498f0c0871f7f2333a692c243fe
tree2457479ba8444553b4cea8f7c128b4c840f8ff16
parent0604628bb03ae695f61b872cc59f1933a8379625
netfilter: nft_tunnel: Add NFTA_TUNNEL_MODE options

nft "tunnel" expr match both the tun_info of RX and TX. This patch
provide the NFTA_TUNNEL_MODE to individually match the tun_info of
RX or TX.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_tunnel.c