]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Oct 2014 00:08:24 +0000 (20:08 -0400)
commit4c4511547d4f2045fd3e2a07043594ef77d85456
treef2335f0a3fd04aa23d5e137e2297e433d230fa3c
parent5d4372ccf381b7a271b3d8a37d0790a963744b39
ip6_gre: fix flowi6_proto value in xmit path

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: 3d8fd70921d8 ("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>
net/ipv6/ip6_gre.c