]> git.proxmox.com Git - mirror_iproute2.git/commit
gre6/tunnel: Do not submit garbage in flowinfo
authorSerhey Popovych <serhe.popovych@gmail.com>
Wed, 27 Dec 2017 11:28:15 +0000 (13:28 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 27 Dec 2017 21:45:37 +0000 (13:45 -0800)
commitafdf9277eb216c923e2ed729d045c07b99be2a3c
tree0a15857b02a89ef12882201f8dd23733f7a118ac
parent147ade01b036aa0b4d6041ea0ef92608a4ded72c
gre6/tunnel: Do not submit garbage in flowinfo

We always send flowinfo to the kernel. If flowlabel/tclass
was set first to non-inherit value and then reset to
inherit we do not clear flowlabel/tclass part in flowinfo,
send it to kernel and can get from the kernel back.

Even if we check for IP6_TNL_F_USE_ORIG_TCLASS and
IP6_TNL_F_USE_ORIG_FLOWLABEL when printing options
sending invalid flowlabel/tclass to the kernel seems
bad idea.

Note that ip6tnl always clean corresponding flowinfo
parts on inherit.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
ip/link_gre6.c