diff options
author | Brian Haley <brian.haley@hp.com> | 2006-11-10 17:54:51 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:13 -0500 |
commit | d3a1be9cba86c4385a5fe46673bbb4730551f454 (patch) | |
tree | 24bcb9244dcb894c333c33c0f1dd88e1ddcc2267 /net/ipv6/icmp.c | |
parent | f465e489c457821751f6253abaaf28c10f9d8895 (diff) |
[IPv6]: Only modify checksum for UDP
Only change upper-layer checksum from 0 to 0xFFFF for UDP (as RFC 768
states), not for others as RFC 4443 doesn't require it.
Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 52cca93ff2f8..bd51847acd57 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -247,8 +247,6 @@ static int icmpv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct | |||
247 | len, fl->proto, tmp_csum); | 247 | len, fl->proto, tmp_csum); |
248 | icmp6h->icmp6_cksum = tmp_csum; | 248 | icmp6h->icmp6_cksum = tmp_csum; |
249 | } | 249 | } |
250 | if (icmp6h->icmp6_cksum == 0) | ||
251 | icmp6h->icmp6_cksum = -1; | ||
252 | ip6_push_pending_frames(sk); | 250 | ip6_push_pending_frames(sk); |
253 | out: | 251 | out: |
254 | return err; | 252 | return err; |