aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-04-21 17:59:20 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-21 17:59:20 -0400
commite5700aff144fbbba46be40049f0c55fb57283777 (patch)
tree94eafb68774f5c23c22e8a98794f0f1a760a6c27 /net/ipv6/tcp_ipv6.c
parentf71b70e115dd0bb34eee4d281a4fb6416e88cfff (diff)
tcp: Mark v6 response packets as CHECKSUM_PARTIAL
Otherwise we only get the checksum right for data-less TCP responses. Noticed by Herbert Xu. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r--net/ipv6/tcp_ipv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 5d2e4301e246..1ababbb41131 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1054,6 +1054,9 @@ static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win,
1054 ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr); 1054 ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr);
1055 ipv6_addr_copy(&fl.fl6_src, &ipv6_hdr(skb)->daddr); 1055 ipv6_addr_copy(&fl.fl6_src, &ipv6_hdr(skb)->daddr);
1056 1056
1057 buff->ip_summed = CHECKSUM_PARTIAL;
1058 buff->csum = 0;
1059
1057 __tcp_v6_send_check(buff, &fl.fl6_src, &fl.fl6_dst); 1060 __tcp_v6_send_check(buff, &fl.fl6_src, &fl.fl6_dst);
1058 1061
1059 fl.proto = IPPROTO_TCP; 1062 fl.proto = IPPROTO_TCP;