diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2005-12-14 12:55:24 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-12-14 12:55:24 -0800 |
commit | 1542272a60ab9c0655a13ead8b7d7a661365f9fb (patch) | |
tree | 1a40dc0dec4f538471000c5b9031ce373ac26e2d /net | |
parent | acd9b7b4e08a3f0f48afa922d8e371414cf2d3b2 (diff) | |
download | linux-3.10-1542272a60ab9c0655a13ead8b7d7a661365f9fb.tar.gz linux-3.10-1542272a60ab9c0655a13ead8b7d7a661365f9fb.tar.bz2 linux-3.10-1542272a60ab9c0655a13ead8b7d7a661365f9fb.zip |
[GRE]: Fix hardware checksum modification
The skb_postpull_rcsum introduced a bug to the checksum modification.
Although the length pulled is offset bytes, the origin of the pulling
is the GRE header, not the IP header.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ip_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index a4c347c3b8e..46f9d9cf7a5 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -618,7 +618,7 @@ static int ipgre_rcv(struct sk_buff *skb) skb->mac.raw = skb->nh.raw; skb->nh.raw = __pskb_pull(skb, offset); - skb_postpull_rcsum(skb, skb->mac.raw, offset); + skb_postpull_rcsum(skb, skb->h.raw, offset); memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options)); skb->pkt_type = PACKET_HOST; #ifdef CONFIG_NET_IPGRE_BROADCAST |