diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-04-09 14:59:39 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:28:43 -0400 |
commit | 604763722c655c7e3f31ecf6f7b4dafcd26a7a15 (patch) | |
tree | a5c07f0e22ac86e7ca7a8c80bd3f111116610edd /net/ipv6/tcp_ipv6.c | |
parent | 628592ccdbbb5bb751217cf02e2e7abb500d7ffe (diff) |
[NET]: Treat CHECKSUM_PARTIAL as CHECKSUM_UNNECESSARY
When a transmitted packet is looped back directly, CHECKSUM_PARTIAL
maps to the semantics of CHECKSUM_UNNECESSARY. Therefore we should
treat it as such in the stack.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 7e824b97126d..2b668a6ae698 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1707,8 +1707,7 @@ static int tcp_v6_rcv(struct sk_buff **pskb) | |||
1707 | if (!pskb_may_pull(skb, th->doff*4)) | 1707 | if (!pskb_may_pull(skb, th->doff*4)) |
1708 | goto discard_it; | 1708 | goto discard_it; |
1709 | 1709 | ||
1710 | if ((skb->ip_summed != CHECKSUM_UNNECESSARY && | 1710 | if (!skb_csum_unnecessary(skb) && tcp_v6_checksum_init(skb)) |
1711 | tcp_v6_checksum_init(skb))) | ||
1712 | goto bad_packet; | 1711 | goto bad_packet; |
1713 | 1712 | ||
1714 | th = tcp_hdr(skb); | 1713 | th = tcp_hdr(skb); |