Commit c59141fa authored by David S. Miller's avatar David S. Miller

In tcp_v4_send_reset, use inet_sk to get at

ttl of tcp_socket.
parent e2da4b9e
......@@ -1202,7 +1202,7 @@ static void tcp_v4_send_reset(struct sk_buff *skb)
arg.n_iov = 1;
arg.csumoffset = offsetof(struct tcphdr, check) / 2;
tcp_socket->sk->protinfo.af_inet.ttl = sysctl_ip_default_ttl;
inet_sk(tcp_socket->sk)->ttl = sysctl_ip_default_ttl;
ip_send_reply(tcp_socket->sk, skb, &arg, sizeof rth);
TCP_INC_STATS_BH(TcpOutSegs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment