Lines Matching full:ipv4
3 * sysctl_net_ipv4.c: sysctl interface to net IPV4 subsystem.
6 * Added /proc/sys/net/ipv4 directory entry (empty =) ). [MS]
57 if (same_parity && !net->ipv4.ip_local_ports.warned) { in set_local_port_range()
58 net->ipv4.ip_local_ports.warned = true; in set_local_port_range()
61 WRITE_ONCE(net->ipv4.ip_local_ports.range, high << 16 | low); in set_local_port_range()
89 (range[0] < READ_ONCE(net->ipv4.sysctl_ip_prot_sock))) in ipv4_local_port_range()
103 ipv4.sysctl_ip_prot_sock); in ipv4_privileged_ports()
115 pports = READ_ONCE(net->ipv4.sysctl_ip_prot_sock); in ipv4_privileged_ports()
127 WRITE_ONCE(net->ipv4.sysctl_ip_prot_sock, pports); in ipv4_privileged_ports()
138 container_of(table->data, struct net, ipv4.ping_group_range.range); in inet_get_ping_group_range_table()
141 seq = read_seqbegin(&net->ipv4.ping_group_range.lock); in inet_get_ping_group_range_table()
145 } while (read_seqretry(&net->ipv4.ping_group_range.lock, seq)); in inet_get_ping_group_range_table()
154 container_of(table->data, struct net, ipv4.ping_group_range.range); in set_ping_group_range()
155 write_seqlock(&net->ipv4.ping_group_range.lock); in set_ping_group_range()
158 write_sequnlock(&net->ipv4.ping_group_range.lock); in set_ping_group_range()
204 ipv4.sysctl_ip_fwd_update_priority); in ipv4_fwd_update_priority()
217 ipv4.tcp_congestion_control); in proc_tcp_congestion_control()
290 ipv4.sysctl_tcp_fastopen); in proc_tcp_fastopen_key()
362 ipv4.sysctl_tcp_fastopen_blackhole_timeout); in proc_tfo_blackhole_detect_timeout()
367 atomic_set(&net->ipv4.tfo_active_disable_times, 0); in proc_tfo_blackhole_detect_timeout()
393 ipv4.sysctl_tcp_child_ehash_entries); in proc_tcp_ehash_entries()
394 struct inet_hashinfo *hinfo = net->ipv4.tcp_death_row.hashinfo; in proc_tcp_ehash_entries()
417 ipv4.sysctl_udp_child_hash_entries); in proc_udp_hash_entries()
421 udp_hash_entries = net->ipv4.udp_table->mask + 1; in proc_udp_hash_entries()
426 if (!net_eq(net, &init_net) && net->ipv4.udp_table == &udp_table) in proc_udp_hash_entries()
442 ipv4.sysctl_fib_multipath_hash_policy); in proc_fib_multipath_hash_policy()
460 ipv4.sysctl_fib_multipath_hash_fields); in proc_fib_multipath_hash_fields()
484 WRITE_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed, new); in proc_fib_multipath_hash_set_seed()
497 mphs = &net->ipv4.sysctl_fib_multipath_hash_seed; in proc_fib_multipath_hash_seed()
624 .data = &init_net.ipv4.tcp_death_row.sysctl_max_tw_buckets,
631 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_all,
640 .data = &init_net.ipv4.sysctl_icmp_echo_enable_probe,
649 .data = &init_net.ipv4.sysctl_icmp_echo_ignore_broadcasts,
658 .data = &init_net.ipv4.sysctl_icmp_ignore_bogus_error_responses,
667 .data = &init_net.ipv4.sysctl_icmp_errors_use_inbound_ifaddr,
676 .data = &init_net.ipv4.sysctl_icmp_ratelimit,
683 .data = &init_net.ipv4.sysctl_icmp_ratemask,
690 .data = &init_net.ipv4.sysctl_icmp_msgs_per_sec,
698 .data = &init_net.ipv4.sysctl_icmp_msgs_burst,
706 .data = &init_net.ipv4.ping_group_range.range,
714 .data = &init_net.ipv4.sysctl_raw_l3mdev_accept,
724 .data = &init_net.ipv4.sysctl_tcp_ecn,
733 .data = &init_net.ipv4.sysctl_tcp_ecn_fallback,
742 .data = &init_net.ipv4.sysctl_ip_dynaddr,
749 .data = &init_net.ipv4.sysctl_ip_early_demux,
756 .data = &init_net.ipv4.sysctl_udp_early_demux,
763 .data = &init_net.ipv4.sysctl_tcp_early_demux,
770 .data = &init_net.ipv4.sysctl_nexthop_compat_mode,
779 .data = &init_net.ipv4.sysctl_ip_default_ttl,
795 .data = &init_net.ipv4.sysctl_local_reserved_ports,
802 .data = &init_net.ipv4.sysctl_ip_no_pmtu_disc,
809 .data = &init_net.ipv4.sysctl_ip_fwd_use_pmtu,
816 .data = &init_net.ipv4.sysctl_ip_fwd_update_priority,
825 .data = &init_net.ipv4.sysctl_ip_nonlocal_bind,
832 .data = &init_net.ipv4.sysctl_ip_autobind_reuse,
841 .data = &init_net.ipv4.sysctl_fwmark_reflect,
848 .data = &init_net.ipv4.sysctl_tcp_fwmark_accept,
856 .data = &init_net.ipv4.sysctl_tcp_l3mdev_accept,
866 .data = &init_net.ipv4.sysctl_tcp_mtu_probing,
873 .data = &init_net.ipv4.sysctl_tcp_base_mss,
880 .data = &init_net.ipv4.sysctl_tcp_min_snd_mss,
889 .data = &init_net.ipv4.sysctl_tcp_mtu_probe_floor,
898 .data = &init_net.ipv4.sysctl_tcp_probe_threshold,
905 .data = &init_net.ipv4.sysctl_tcp_probe_interval,
913 .data = &init_net.ipv4.sysctl_igmp_llm_reports,
920 .data = &init_net.ipv4.sysctl_igmp_max_memberships,
927 .data = &init_net.ipv4.sysctl_igmp_max_msf,
935 .data = &init_net.ipv4.sysctl_igmp_qrv,
944 .data = &init_net.ipv4.tcp_congestion_control,
963 .data = &init_net.ipv4.sysctl_tcp_keepalive_time,
970 .data = &init_net.ipv4.sysctl_tcp_keepalive_probes,
977 .data = &init_net.ipv4.sysctl_tcp_keepalive_intvl,
984 .data = &init_net.ipv4.sysctl_tcp_syn_retries,
993 .data = &init_net.ipv4.sysctl_tcp_synack_retries,
1001 .data = &init_net.ipv4.sysctl_tcp_syncookies,
1009 .data = &init_net.ipv4.sysctl_tcp_migrate_req,
1018 .data = &init_net.ipv4.sysctl_tcp_reordering,
1025 .data = &init_net.ipv4.sysctl_tcp_retries1,
1033 .data = &init_net.ipv4.sysctl_tcp_retries2,
1040 .data = &init_net.ipv4.sysctl_tcp_orphan_retries,
1047 .data = &init_net.ipv4.sysctl_tcp_fin_timeout,
1054 .data = &init_net.ipv4.sysctl_tcp_notsent_lowat,
1061 .data = &init_net.ipv4.sysctl_tcp_tw_reuse,
1070 .data = &init_net.ipv4.sysctl_max_syn_backlog,
1077 .data = &init_net.ipv4.sysctl_tcp_fastopen,
1085 .data = &init_net.ipv4.sysctl_tcp_fastopen,
1096 .data = &init_net.ipv4.sysctl_tcp_fastopen_blackhole_timeout,
1105 .data = &init_net.ipv4.sysctl_fib_multipath_use_neigh,
1114 .data = &init_net.ipv4.sysctl_fib_multipath_hash_policy,
1123 .data = &init_net.ipv4.sysctl_fib_multipath_hash_fields,
1141 .data = &init_net.ipv4.sysctl_ip_prot_sock,
1148 .data = &init_net.ipv4.sysctl_udp_l3mdev_accept,
1158 .data = &init_net.ipv4.sysctl_tcp_sack,
1165 .data = &init_net.ipv4.sysctl_tcp_window_scaling,
1172 .data = &init_net.ipv4.sysctl_tcp_timestamps,
1179 .data = &init_net.ipv4.sysctl_tcp_early_retrans,
1188 .data = &init_net.ipv4.sysctl_tcp_recovery,
1195 .data = &init_net.ipv4.sysctl_tcp_thin_linear_timeouts,
1202 .data = &init_net.ipv4.sysctl_tcp_slow_start_after_idle,
1209 .data = &init_net.ipv4.sysctl_tcp_retrans_collapse,
1216 .data = &init_net.ipv4.sysctl_tcp_stdurg,
1223 .data = &init_net.ipv4.sysctl_tcp_rfc1337,
1230 .data = &init_net.ipv4.sysctl_tcp_abort_on_overflow,
1237 .data = &init_net.ipv4.sysctl_tcp_fack,
1244 .data = &init_net.ipv4.sysctl_tcp_max_reordering,
1251 .data = &init_net.ipv4.sysctl_tcp_dsack,
1258 .data = &init_net.ipv4.sysctl_tcp_app_win,
1267 .data = &init_net.ipv4.sysctl_tcp_adv_win_scale,
1276 .data = &init_net.ipv4.sysctl_tcp_frto,
1283 .data = &init_net.ipv4.sysctl_tcp_nometrics_save,
1290 .data = &init_net.ipv4.sysctl_tcp_no_ssthresh_metrics_save,
1299 .data = &init_net.ipv4.sysctl_tcp_moderate_rcvbuf,
1306 .data = &init_net.ipv4.sysctl_tcp_tso_win_divisor,
1313 .data = &init_net.ipv4.sysctl_tcp_workaround_signed_windows,
1320 .data = &init_net.ipv4.sysctl_tcp_limit_output_bytes,
1327 .data = &init_net.ipv4.sysctl_tcp_challenge_ack_limit,
1334 .data = &init_net.ipv4.sysctl_tcp_min_tso_segs,
1342 .data = &init_net.ipv4.sysctl_tcp_tso_rtt_log,
1349 .data = &init_net.ipv4.sysctl_tcp_min_rtt_wlen,
1358 .data = &init_net.ipv4.sysctl_tcp_autocorking,
1367 .data = &init_net.ipv4.sysctl_tcp_invalid_ratelimit,
1374 .data = &init_net.ipv4.sysctl_tcp_pacing_ss_ratio,
1383 .data = &init_net.ipv4.sysctl_tcp_pacing_ca_ratio,
1392 .data = &init_net.ipv4.sysctl_tcp_wmem,
1393 .maxlen = sizeof(init_net.ipv4.sysctl_tcp_wmem),
1400 .data = &init_net.ipv4.sysctl_tcp_rmem,
1401 .maxlen = sizeof(init_net.ipv4.sysctl_tcp_rmem),
1408 .data = &init_net.ipv4.sysctl_tcp_comp_sack_delay_ns,
1415 .data = &init_net.ipv4.sysctl_tcp_comp_sack_slack_ns,
1422 .data = &init_net.ipv4.sysctl_tcp_comp_sack_nr,
1430 .data = &init_net.ipv4.sysctl_tcp_backlog_ack_defer,
1439 .data = &init_net.ipv4.sysctl_tcp_reflect_tos,
1448 .data = &init_net.ipv4.sysctl_tcp_child_ehash_entries,
1454 .data = &init_net.ipv4.sysctl_tcp_child_ehash_entries,
1463 .data = &init_net.ipv4.sysctl_udp_child_hash_entries,
1469 .data = &init_net.ipv4.sysctl_udp_child_hash_entries,
1478 .data = &init_net.ipv4.sysctl_udp_rmem_min,
1479 .maxlen = sizeof(init_net.ipv4.sysctl_udp_rmem_min),
1486 .data = &init_net.ipv4.sysctl_udp_wmem_min,
1487 .maxlen = sizeof(init_net.ipv4.sysctl_udp_wmem_min),
1494 .data = &init_net.ipv4.sysctl_fib_notify_on_flag_change,
1503 .data = &init_net.ipv4.sysctl_tcp_plb_enabled,
1512 .data = &init_net.ipv4.sysctl_tcp_plb_idle_rehash_rounds,
1520 .data = &init_net.ipv4.sysctl_tcp_plb_rehash_rounds,
1528 .data = &init_net.ipv4.sysctl_tcp_plb_suspend_rto_sec,
1535 .data = &init_net.ipv4.sysctl_tcp_plb_cong_thresh,
1544 .data = &init_net.ipv4.sysctl_tcp_syn_linear_timeouts,
1553 .data = &init_net.ipv4.sysctl_tcp_shrink_window,
1562 .data = &init_net.ipv4.sysctl_tcp_pingpong_thresh,
1570 .data = &init_net.ipv4.sysctl_tcp_rto_min_us,
1606 net->ipv4.ipv4_hdr = register_net_sysctl_sz(net, "net/ipv4", table, in ipv4_sysctl_init_net()
1608 if (!net->ipv4.ipv4_hdr) in ipv4_sysctl_init_net()
1611 net->ipv4.sysctl_local_reserved_ports = kzalloc(65536 / 8, GFP_KERNEL); in ipv4_sysctl_init_net()
1612 if (!net->ipv4.sysctl_local_reserved_ports) in ipv4_sysctl_init_net()
1620 unregister_net_sysctl_table(net->ipv4.ipv4_hdr); in ipv4_sysctl_init_net()
1632 kfree(net->ipv4.sysctl_local_reserved_ports); in ipv4_sysctl_exit_net()
1633 table = net->ipv4.ipv4_hdr->ctl_table_arg; in ipv4_sysctl_exit_net()
1634 unregister_net_sysctl_table(net->ipv4.ipv4_hdr); in ipv4_sysctl_exit_net()
1647 hdr = register_net_sysctl(&init_net, "net/ipv4", ipv4_table); in sysctl_ipv4_init()