iptunnel: make TUNNEL_FLAGS available in uapi
authorwenxu <wenxu@ucloud.cn>
Wed, 19 Dec 2018 06:11:15 +0000 (14:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2018 23:58:01 +0000 (15:58 -0800)
commit1875a9ab01dfa96b06cb6649cb1ce56efa86c7cb
tree4002aa9917fbb654a45712352ddd0e8f557d38aa
parent8e1da73acded4751a93d4166458a7e640f37d26c
iptunnel: make TUNNEL_FLAGS available in uapi

ip l add dev tun type gretap external
ip r a 10.0.0.1 encap ip dst 192.168.152.171 id 1000 dev gretap

For gretap Key example when the command set the id but don't set the
TUNNEL_KEY flags. There is no key field in the send packet

In the lwtunnel situation, some TUNNEL_FLAGS should can be set by
userspace

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
include/uapi/linux/if_tunnel.h