Lines Matching refs:ipv4
112 int reuse = sock_net(sk)->ipv4.sysctl_tcp_tw_reuse; in tcp_twsk_unique()
209 struct inet_timewait_death_row *tcp_death_row = &sock_net(sk)->ipv4.tcp_death_row; in tcp_v4_connect()
813 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_reset()
911 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_ack()
1004 tos = sock_net(sk)->ipv4.sysctl_tcp_reflect_tos ? in tcp_v4_send_synack()
1590 if (sock_net(sk)->ipv4.sysctl_tcp_reflect_tos) in tcp_v4_syn_recv_sock()
3090 .sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_tcp_wmem),
3091 .sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_tcp_rmem),
3107 if (net->ipv4.tcp_congestion_control) in tcp_sk_exit()
3108 bpf_module_put(net->ipv4.tcp_congestion_control, in tcp_sk_exit()
3109 net->ipv4.tcp_congestion_control->owner); in tcp_sk_exit()
3112 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.tcp_sk, cpu)); in tcp_sk_exit()
3113 free_percpu(net->ipv4.tcp_sk); in tcp_sk_exit()
3120 net->ipv4.tcp_sk = alloc_percpu(struct sock *); in tcp_sk_init()
3121 if (!net->ipv4.tcp_sk) in tcp_sk_init()
3138 *per_cpu_ptr(net->ipv4.tcp_sk, cpu) = sk; in tcp_sk_init()
3141 net->ipv4.sysctl_tcp_ecn = 2; in tcp_sk_init()
3142 net->ipv4.sysctl_tcp_ecn_fallback = 1; in tcp_sk_init()
3144 net->ipv4.sysctl_tcp_base_mss = TCP_BASE_MSS; in tcp_sk_init()
3145 net->ipv4.sysctl_tcp_min_snd_mss = TCP_MIN_SND_MSS; in tcp_sk_init()
3146 net->ipv4.sysctl_tcp_probe_threshold = TCP_PROBE_THRESHOLD; in tcp_sk_init()
3147 net->ipv4.sysctl_tcp_probe_interval = TCP_PROBE_INTERVAL; in tcp_sk_init()
3148 net->ipv4.sysctl_tcp_mtu_probe_floor = TCP_MIN_SND_MSS; in tcp_sk_init()
3150 net->ipv4.sysctl_tcp_keepalive_time = TCP_KEEPALIVE_TIME; in tcp_sk_init()
3151 net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES; in tcp_sk_init()
3152 net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL; in tcp_sk_init()
3154 net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES; in tcp_sk_init()
3155 net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES; in tcp_sk_init()
3156 net->ipv4.sysctl_tcp_syncookies = 1; in tcp_sk_init()
3157 net->ipv4.sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH; in tcp_sk_init()
3158 net->ipv4.sysctl_tcp_retries1 = TCP_RETR1; in tcp_sk_init()
3159 net->ipv4.sysctl_tcp_retries2 = TCP_RETR2; in tcp_sk_init()
3160 net->ipv4.sysctl_tcp_orphan_retries = 0; in tcp_sk_init()
3161 net->ipv4.sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT; in tcp_sk_init()
3162 net->ipv4.sysctl_tcp_notsent_lowat = UINT_MAX; in tcp_sk_init()
3163 net->ipv4.sysctl_tcp_tw_reuse = 2; in tcp_sk_init()
3164 net->ipv4.sysctl_tcp_no_ssthresh_metrics_save = 1; in tcp_sk_init()
3167 net->ipv4.tcp_death_row.sysctl_max_tw_buckets = cnt / 2; in tcp_sk_init()
3168 net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo; in tcp_sk_init()
3170 net->ipv4.sysctl_max_syn_backlog = max(128, cnt / 128); in tcp_sk_init()
3171 net->ipv4.sysctl_tcp_sack = 1; in tcp_sk_init()
3172 net->ipv4.sysctl_tcp_window_scaling = 1; in tcp_sk_init()
3173 net->ipv4.sysctl_tcp_timestamps = 1; in tcp_sk_init()
3174 net->ipv4.sysctl_tcp_early_retrans = 3; in tcp_sk_init()
3175 net->ipv4.sysctl_tcp_recovery = TCP_RACK_LOSS_DETECTION; in tcp_sk_init()
3176 net->ipv4.sysctl_tcp_slow_start_after_idle = 1; /* By default, RFC2861 behavior. */ in tcp_sk_init()
3177 net->ipv4.sysctl_tcp_retrans_collapse = 1; in tcp_sk_init()
3178 net->ipv4.sysctl_tcp_max_reordering = 300; in tcp_sk_init()
3179 net->ipv4.sysctl_tcp_dsack = 1; in tcp_sk_init()
3180 net->ipv4.sysctl_tcp_app_win = 31; in tcp_sk_init()
3181 net->ipv4.sysctl_tcp_adv_win_scale = 1; in tcp_sk_init()
3182 net->ipv4.sysctl_tcp_frto = 2; in tcp_sk_init()
3183 net->ipv4.sysctl_tcp_moderate_rcvbuf = 1; in tcp_sk_init()
3188 net->ipv4.sysctl_tcp_tso_win_divisor = 3; in tcp_sk_init()
3190 net->ipv4.sysctl_tcp_limit_output_bytes = 16 * 65536; in tcp_sk_init()
3192 net->ipv4.sysctl_tcp_challenge_ack_limit = 1000; in tcp_sk_init()
3193 net->ipv4.sysctl_tcp_min_tso_segs = 2; in tcp_sk_init()
3194 net->ipv4.sysctl_tcp_min_rtt_wlen = 300; in tcp_sk_init()
3195 net->ipv4.sysctl_tcp_autocorking = 1; in tcp_sk_init()
3196 net->ipv4.sysctl_tcp_invalid_ratelimit = HZ/2; in tcp_sk_init()
3197 net->ipv4.sysctl_tcp_pacing_ss_ratio = 200; in tcp_sk_init()
3198 net->ipv4.sysctl_tcp_pacing_ca_ratio = 120; in tcp_sk_init()
3200 memcpy(net->ipv4.sysctl_tcp_rmem, in tcp_sk_init()
3201 init_net.ipv4.sysctl_tcp_rmem, in tcp_sk_init()
3202 sizeof(init_net.ipv4.sysctl_tcp_rmem)); in tcp_sk_init()
3203 memcpy(net->ipv4.sysctl_tcp_wmem, in tcp_sk_init()
3204 init_net.ipv4.sysctl_tcp_wmem, in tcp_sk_init()
3205 sizeof(init_net.ipv4.sysctl_tcp_wmem)); in tcp_sk_init()
3207 net->ipv4.sysctl_tcp_comp_sack_delay_ns = NSEC_PER_MSEC; in tcp_sk_init()
3208 net->ipv4.sysctl_tcp_comp_sack_slack_ns = 100 * NSEC_PER_USEC; in tcp_sk_init()
3209 net->ipv4.sysctl_tcp_comp_sack_nr = 44; in tcp_sk_init()
3210 net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE; in tcp_sk_init()
3211 net->ipv4.sysctl_tcp_fastopen_blackhole_timeout = 0; in tcp_sk_init()
3212 atomic_set(&net->ipv4.tfo_active_disable_times, 0); in tcp_sk_init()
3216 bpf_try_module_get(init_net.ipv4.tcp_congestion_control, in tcp_sk_init()
3217 init_net.ipv4.tcp_congestion_control->owner)) in tcp_sk_init()
3218 net->ipv4.tcp_congestion_control = init_net.ipv4.tcp_congestion_control; in tcp_sk_init()
3220 net->ipv4.tcp_congestion_control = &tcp_reno; in tcp_sk_init()