OSDN Git Service

netfilter: nft_tunnel: also dump OPTS_ERSPAN/VXLAN
authorXin Long <lucien.xin@gmail.com>
Fri, 13 Dec 2019 08:53:08 +0000 (16:53 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Dec 2019 21:58:27 +0000 (22:58 +0100)
commit73239bd9707ab2f3b7621e50468c14410cf4e2c2
tree81f98166eefefdc04adac774030d77ec34c2e37b
parent2149f36dbd44f2d6bf5357e5d096205b92cd854a
netfilter: nft_tunnel: also dump OPTS_ERSPAN/VXLAN

This patch is to add the nest attr OPTS_ERSPAN/VXLAN when dumping
KEY_OPTS, and it would be helpful when parsing in userpace. Also,
this is needed for supporting multiple geneve opts in the future
patches.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tunnel.c