/[linux-patches]/genpatches-2.6/trunk/2.6.14/1064_5_skb_postpull_rcsum-fix.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1064_5_skb_postpull_rcsum-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 235 - (show annotations) (download) (as text)
Thu Dec 29 16:17:24 2005 UTC (14 years, 11 months ago) by dsd
File MIME type: text/x-diff
File size: 1127 byte(s)
2.6.14.5 thanks to kerframil
1 From: Herbert Xu <herbert@gondor.apana.org.au>
2 Date: Wed, 14 Dec 2005 21:02:35 +0000 (-0800)
3 Subject: [PATCH] Fix hardware checksum modification
4 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/gregkh/linux-2.6.14.y.git;a=commitdiff;h=53e2254fe13b88de5957b22a5264e8e01e599f51
5
6 [PATCH] Fix hardware checksum modification
7
8 The skb_postpull_rcsum introduced a bug to the checksum modification.
9 Although the length pulled is offset bytes, the origin of the pulling
10 is the GRE header, not the IP header.
11
12 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 Signed-off-by: Chris Wright <chrisw@redhat.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16 ---
17
18 --- a/net/ipv4/ip_gre.c
19 +++ b/net/ipv4/ip_gre.c
20 @@ -617,7 +617,7 @@ static int ipgre_rcv(struct sk_buff *skb
21
22 skb->mac.raw = skb->nh.raw;
23 skb->nh.raw = __pskb_pull(skb, offset);
24 - skb_postpull_rcsum(skb, skb->mac.raw, offset);
25 + skb_postpull_rcsum(skb, skb->h.raw, offset);
26 memset(&(IPCB(skb)->opt), 0, sizeof(struct ip_options));
27 skb->pkt_type = PACKET_HOST;
28 #ifdef CONFIG_NET_IPGRE_BROADCAST

  ViewVC Help
Powered by ViewVC 1.1.20