Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112155
b: refs/heads/master
c: 52cd575
h: refs/heads/master
i:
  112153: 514fabc
  112151: 7ffb9ab
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 8, 2008
1 parent c583a5e commit 1d604b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ca89cea5c9fdafd495fb840fa055383d253174e
refs/heads/master: 52cd5750e81ec8d213949fa7c0d2e08907bf498b
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb)
#endif
arg.csum = csum_tcpudp_nofold(ip_hdr(skb)->daddr,
ip_hdr(skb)->saddr, /* XXX */
sizeof(struct tcphdr), IPPROTO_TCP, 0);
arg.iov[0].iov_len, IPPROTO_TCP, 0);
arg.csumoffset = offsetof(struct tcphdr, check) / 2;
arg.flags = (sk && inet_sk(sk)->transparent) ? IP_REPLY_ARG_NOSRCCHECK : 0;

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/ipv6/tcp_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,14 +1012,14 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)
}
#endif

buff->csum = csum_partial((char *)t1, sizeof(*t1), 0);
buff->csum = csum_partial((char *)t1, tot_len, 0);

memset(&fl, 0, sizeof(fl));
ipv6_addr_copy(&fl.fl6_dst, &ipv6_hdr(skb)->saddr);
ipv6_addr_copy(&fl.fl6_src, &ipv6_hdr(skb)->daddr);

t1->check = csum_ipv6_magic(&fl.fl6_src, &fl.fl6_dst,
sizeof(*t1), IPPROTO_TCP,
tot_len, IPPROTO_TCP,
buff->csum);

fl.proto = IPPROTO_TCP;
Expand Down

0 comments on commit 1d604b8

Please sign in to comment.