]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ip6_gre: fix flowi6_proto value in xmit path
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 2 Oct 2014 16:26:49 +0000 (18:26 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 17 Oct 2014 07:43:18 +0000 (09:43 +0200)
commit9865479b5052f0500970ac999c4e9eba41926665
tree77d96680c5816b431c40161114e58a1ba210ee0b
parent4d7fe752478f96bcdf0d54d077e98733ff6a07a9
ip6_gre: fix flowi6_proto value in xmit path

[ Upstream commit 3be07244b7337760a3269d56b2f4a63e72218648 ]

In xmit path, we build a flowi6 which will be used for the output route lookup.
We are sending a GRE packet, neither IPv4 nor IPv6 encapsulated packet, thus the
protocol should be IPPROTO_GRE.

Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
Reported-by: Matthieu Ternisien d'Ouville <matthieu.tdo@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/ipv6/ip6_gre.c