mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 03:04:01 +08:00
[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>
This commit is contained in:
parent
acd9b7b4e0
commit
1542272a60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user