]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4/ip_gre: set transport header correctly to gre header
authorIsaku Yamahata <yamahata@valinux.co.jp>
Mon, 24 Dec 2012 16:51:03 +0000 (16:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Dec 2012 23:19:56 +0000 (15:19 -0800)
commit8009929fea9fadba8af4d8ce3d0f23fd34a15281
tree61554559d5bdb5a76b03f821b36d1f33fdf1fc22
parent87b01d895b862dbf674e4b72b09b32df2c04b68d
ipv4/ip_gre: set transport header correctly to gre header

ipgre_tunnel_xmit() incorrectly sets transport header to inner payload
instead of GRE header. It seems copy-and-pasted from ipip.c.
So 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/ipv4/ip_gre.c