]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute: Set ip/ip6 lwtunnel flags
authorwenxu <wenxu@ucloud.cn>
Wed, 2 Jan 2019 03:57:00 +0000 (11:57 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Jan 2019 20:17:27 +0000 (09:17 +1300)
commit3d65cefbefc86a53877f1e6461a9461e5b8fd7b3
treebd2da366d770e8b98a246199a3a3ed6dc783d27f
parent8513f4a92657c0418043dafd9efdaa047b7f7132
iproute: Set ip/ip6 lwtunnel flags

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 example when the command set the id but don't set the
TUNNEL_KEY flags. There is no key field in the send packet

User can set flags with key, csum, seq
ip r a 10.0.0.1 encap ip dst 192.168.152.171 id 1000 key csum dev gretap

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iproute_lwtunnel.c
man/man8/ip-route.8.in