]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6/ip6_gre: set transport header correctly
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 24 Dec 2012 16:51:04 +0000 (16:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Dec 2012 23:19:56 +0000 (15:19 -0800)
commit1c9f67238c0e4a56c592b05e850114cdce69d8c4
tree10d52422a5e8b0cf7380cf5807eb7036855c3989
parentdd4a5ecb28c54fbec1947648aa9264fd6dc9f1d4
ipv6/ip6_gre: set transport header correctly

ip6gre_xmit2() incorrectly sets transport header to inner payload
instead of GRE header. It seems copy-and-pasted from ipip.c.
Set transport header to gre header.
(In ipip case the transport header is the inner ip header, so that's
correct.)

Found by inspection. In practice the incorrect transport header
doesn't matter because the skb usually is sent to another net_device
or socket, so the transport header isn't referenced.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c