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/sctp/input.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/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 18b97eedc1fa..885109fb3dda 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -140,8 +140,7 @@ int sctp_rcv(struct sk_buff *skb) | |||
140 | __skb_pull(skb, skb_transport_offset(skb)); | 140 | __skb_pull(skb, skb_transport_offset(skb)); |
141 | if (skb->len < sizeof(struct sctphdr)) | 141 | if (skb->len < sizeof(struct sctphdr)) |
142 | goto discard_it; | 142 | goto discard_it; |
143 | if ((skb->ip_summed != CHECKSUM_UNNECESSARY) && | 143 | if (!skb_csum_unnecessary(skb) && sctp_rcv_checksum(skb) < 0) |
144 | (sctp_rcv_checksum(skb) < 0)) | ||
145 | goto discard_it; | 144 | goto discard_it; |
146 | 145 | ||
147 | skb_pull(skb, sizeof(struct sctphdr)); | 146 | skb_pull(skb, sizeof(struct sctphdr)); |