]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit59272d39bdab47b7d99175027714c4b19dbea46c
tree4002aa9917fbb654a45712352ddd0e8f557d38aa
parenta388dd15388cb8acf6ed09f99b736b565e5c536a
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