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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2014 06:31:57 +0000 (08:31 +0200)
commitae3b8ed5dadbb278498090b18ee70e6211ef2763
treef2cca5ff1cc6f4f88263d574917806419250e8c0
parentf9aceca39d40c373f5f1a0866059f8347101a3d5
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_gre.c