|
@@ -22,7 +22,6 @@
|
|
#include <linux/gfp.h>
|
|
#include <linux/gfp.h>
|
|
#include <net/tcp.h>
|
|
#include <net/tcp.h>
|
|
|
|
|
|
-int sysctl_tcp_orphan_retries __read_mostly;
|
|
|
|
int sysctl_tcp_thin_linear_timeouts __read_mostly;
|
|
int sysctl_tcp_thin_linear_timeouts __read_mostly;
|
|
|
|
|
|
static void tcp_write_err(struct sock *sk)
|
|
static void tcp_write_err(struct sock *sk)
|
|
@@ -78,7 +77,7 @@ static int tcp_out_of_resources(struct sock *sk, bool do_reset)
|
|
/* Calculate maximal number or retries on an orphaned socket. */
|
|
/* Calculate maximal number or retries on an orphaned socket. */
|
|
static int tcp_orphan_retries(struct sock *sk, bool alive)
|
|
static int tcp_orphan_retries(struct sock *sk, bool alive)
|
|
{
|
|
{
|
|
- int retries = sysctl_tcp_orphan_retries; /* May be zero. */
|
|
|
|
|
|
+ int retries = sock_net(sk)->ipv4.sysctl_tcp_orphan_retries; /* May be zero. */
|
|
|
|
|
|
/* We know from an ICMP that something is wrong. */
|
|
/* We know from an ICMP that something is wrong. */
|
|
if (sk->sk_err_soft && !alive)
|
|
if (sk->sk_err_soft && !alive)
|