|
@@ -89,7 +89,6 @@ EXPORT_SYMBOL(sysctl_tcp_adv_win_scale);
|
|
|
/* rfc5961 challenge ack rate limiting */
|
|
/* rfc5961 challenge ack rate limiting */
|
|
|
int sysctl_tcp_challenge_ack_limit = 1000;
|
|
int sysctl_tcp_challenge_ack_limit = 1000;
|
|
|
|
|
|
|
|
-int sysctl_tcp_stdurg __read_mostly;
|
|
|
|
|
int sysctl_tcp_rfc1337 __read_mostly;
|
|
int sysctl_tcp_rfc1337 __read_mostly;
|
|
|
int sysctl_tcp_max_orphans __read_mostly = NR_FILE;
|
|
int sysctl_tcp_max_orphans __read_mostly = NR_FILE;
|
|
|
int sysctl_tcp_frto __read_mostly = 2;
|
|
int sysctl_tcp_frto __read_mostly = 2;
|
|
@@ -5123,7 +5122,7 @@ static void tcp_check_urg(struct sock *sk, const struct tcphdr *th)
|
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
|
u32 ptr = ntohs(th->urg_ptr);
|
|
u32 ptr = ntohs(th->urg_ptr);
|
|
|
|
|
|
|
|
- if (ptr && !sysctl_tcp_stdurg)
|
|
|
|
|
|
|
+ if (ptr && !sock_net(sk)->ipv4.sysctl_tcp_stdurg)
|
|
|
ptr--;
|
|
ptr--;
|
|
|
ptr += ntohl(th->seq);
|
|
ptr += ntohl(th->seq);
|
|
|
|
|
|