]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
IPV4: ip_gre: set mac_header correctly in receive path
authorTimo Teras <timo.teras@iki.fi>
Fri, 11 Jan 2008 09:30:35 +0000 (01:30 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Feb 2008 20:01:25 +0000 (12:01 -0800)
[IPV4] ip_gre: set mac_header correctly in receive path

[ Upstream commit: 1d0691674764098304ae4c63c715f5883b4d3784 ]

mac_header update in ipgre_recv() was incorrectly changed to
skb_reset_mac_header() when it was introduced.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ip_gre.c

index 5c14ed63e56c97c8b53f188fd0bfd6997a3e8f8c..4b09b251aade5c99c1a8dfda70b1fbda2a1825ca 100644 (file)
@@ -613,7 +613,7 @@ static int ipgre_rcv(struct sk_buff *skb)
                                offset += 4;
                }
 
-               skb_reset_mac_header(skb);
+               skb->mac_header = skb->network_header;
                __pskb_pull(skb, offset);
                skb_reset_network_header(skb);
                skb_postpull_rcsum(skb, skb_transport_header(skb), offset);