diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-20 21:23:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 21:23:59 -0800 |
commit | 0a1ec676ddbee712e1c1da679be4bdc529caf215 (patch) | |
tree | 709db39592784baebb9f43f5d1bbd33c70fdcbeb /net/dccp/ipv4.c | |
parent | c985ed705ffc682ce40d46a5f7bf98db86b27899 (diff) | |
download | op-kernel-dev-0a1ec676ddbee712e1c1da679be4bdc529caf215.zip op-kernel-dev-0a1ec676ddbee712e1c1da679be4bdc529caf215.tar.gz |
[DCCP]: Dont use dccp_v4_checksum in dccp_make_response
dccp_make_response is shared by ipv4/6 and the ipv6 code was
recalculating the checksum, not good, so move the dccp_v4_checksum
call to dccp_v4_send_response.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 34d1b11..f087593 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -264,7 +264,10 @@ static int dccp_v4_send_response(struct sock *sk, struct request_sock *req, skb = dccp_make_response(sk, dst, req); if (skb != NULL) { const struct inet_request_sock *ireq = inet_rsk(req); + struct dccp_hdr *dh = dccp_hdr(skb); + dh->dccph_checksum = dccp_v4_checksum(skb, ireq->loc_addr, + ireq->rmt_addr); memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); err = ip_build_and_send_pkt(skb, sk, ireq->loc_addr, ireq->rmt_addr, |