Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287506
b: refs/heads/master
c: e2446ea
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Lu authored and David S. Miller committed Feb 4, 2012
1 parent c2da7aa commit 12aaaf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5962b35c1de3254a2f03b95efd3b7854b874d7b7
refs/heads/master: e2446eaab5585555a38ea0df4e01ff313dbb4ac9
5 changes: 5 additions & 0 deletions trunk/net/ipv4/tcp_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,11 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb)
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;
/* When socket is gone, all binding information is lost.
* routing might fail in this case. using iif for oif to
* make sure we can deliver it
*/
arg.bound_dev_if = sk ? sk->sk_bound_dev_if : inet_iif(skb);

net = dev_net(skb_dst(skb)->dev);
arg.tos = ip_hdr(skb)->tos;
Expand Down

0 comments on commit 12aaaf6

Please sign in to comment.