]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/net/netns/ipv4.h
tcp: Namespace-ify sysctl_tcp_min_rtt_wlen
[mirror_ubuntu-bionic-kernel.git] / include / net / netns / ipv4.h
CommitLineData
8afd351c
PE
1/*
2 * ipv4 in net namespaces
3 */
4
5#ifndef __NETNS_IPV4_H__
6#define __NETNS_IPV4_H__
e4e4971c 7
7064d16e 8#include <linux/uidgid.h>
ac18e750 9#include <net/inet_frag.h>
a7e53531 10#include <linux/rcupdate.h>
ac18e750 11
51c5d0c4 12struct tcpm_hash_bucket;
752d14dc
PE
13struct ctl_table_header;
14struct ipv4_devconf;
e4e4971c 15struct fib_rules_ops;
e4aef8ae 16struct hlist_head;
f4530fa5 17struct fib_table;
6bd48fcf 18struct sock;
0bbf87d8
EB
19struct local_ports {
20 seqlock_t lock;
21 int range[2];
ed2dfd90 22 bool warned;
0bbf87d8 23};
752d14dc 24
ba6b918a
CW
25struct ping_group_range {
26 seqlock_t lock;
27 kgid_t range[2];
28};
29
1946e672
HY
30struct inet_hashinfo;
31
32struct inet_timewait_death_row {
33 atomic_t tw_count;
34
35 struct inet_hashinfo *hashinfo ____cacheline_aligned_in_smp;
1946e672
HY
36 int sysctl_max_tw_buckets;
37};
38
43713848
HY
39struct tcp_fastopen_context;
40
8afd351c 41struct netns_ipv4 {
2a75de0c 42#ifdef CONFIG_SYSCTL
752d14dc 43 struct ctl_table_header *forw_hdr;
e4a2d5c2 44 struct ctl_table_header *frags_hdr;
68528f09 45 struct ctl_table_header *ipv4_hdr;
39a23e75 46 struct ctl_table_header *route_hdr;
8d068875 47 struct ctl_table_header *xfrm4_hdr;
2a75de0c 48#endif
752d14dc
PE
49 struct ipv4_devconf *devconf_all;
50 struct ipv4_devconf *devconf_dflt;
e4e4971c
DL
51#ifdef CONFIG_IP_MULTIPLE_TABLES
52 struct fib_rules_ops *rules_ops;
f4530fa5 53 bool fib_has_custom_rules;
a7e53531
AD
54 struct fib_table __rcu *fib_main;
55 struct fib_table __rcu *fib_default;
f4530fa5 56#endif
a1f3316d 57 bool fib_has_custom_local_routes;
f4530fa5
DM
58#ifdef CONFIG_IP_ROUTE_CLASSID
59 int fib_num_tclassid_users;
e4e4971c 60#endif
e4aef8ae 61 struct hlist_head *fib_table_hash;
448b128a 62 bool fib_offload_disabled;
6bd48fcf 63 struct sock *fibnl;
ac18e750 64
349c9e3c 65 struct sock * __percpu *icmp_sk;
93a714d6 66 struct sock *mc_autojoin_sk;
349c9e3c 67
c8a627ed 68 struct inet_peer_base *peers;
bdbbb852 69 struct sock * __percpu *tcp_sk;
ac18e750 70 struct netns_frags frags;
9335f047
AD
71#ifdef CONFIG_NETFILTER
72 struct xt_table *iptable_filter;
73 struct xt_table *iptable_mangle;
74 struct xt_table *iptable_raw;
9ea0cb26 75 struct xt_table *arptable_filter;
e9d3897c 76#ifdef CONFIG_SECURITY
560ee653 77 struct xt_table *iptable_security;
e9d3897c 78#endif
e099a173 79 struct xt_table *nat_table;
9335f047 80#endif
a24022e1
PE
81
82 int sysctl_icmp_echo_ignore_all;
83 int sysctl_icmp_echo_ignore_broadcasts;
84 int sysctl_icmp_ignore_bogus_error_responses;
85 int sysctl_icmp_ratelimit;
86 int sysctl_icmp_ratemask;
87 int sysctl_icmp_errors_use_inbound_ifaddr;
9f5e97e5 88
c9d8f1a6 89 struct local_ports ip_local_ports;
0bbf87d8 90
5d134f1c 91 int sysctl_tcp_ecn;
49213555
DB
92 int sysctl_tcp_ecn_fallback;
93
fa50d974 94 int sysctl_ip_default_ttl;
974eda11 95 int sysctl_ip_no_pmtu_disc;
f87c10a8 96 int sysctl_ip_fwd_use_pmtu;
49a60158 97 int sysctl_ip_nonlocal_bind;
287b7f38
NB
98 /* Shall we try to damage output packets if routing dev changes? */
99 int sysctl_ip_dynaddr;
e21145a9 100 int sysctl_ip_early_demux;
dddb64bc
SAK
101 int sysctl_tcp_early_demux;
102 int sysctl_udp_early_demux;
5d134f1c 103
e110861f 104 int sysctl_fwmark_reflect;
84f39b08 105 int sysctl_tcp_fwmark_accept;
6dd9a14e
DA
106#ifdef CONFIG_NET_L3_MASTER_DEV
107 int sysctl_tcp_l3mdev_accept;
108#endif
b0f9ca53
FD
109 int sysctl_tcp_mtu_probing;
110 int sysctl_tcp_base_mss;
6b58e0a5 111 int sysctl_tcp_probe_threshold;
05cbc0db 112 u32 sysctl_tcp_probe_interval;
e110861f 113
13b287e8 114 int sysctl_tcp_keepalive_time;
9bd6861b 115 int sysctl_tcp_keepalive_probes;
b840d15d 116 int sysctl_tcp_keepalive_intvl;
13b287e8 117
6fa25166 118 int sysctl_tcp_syn_retries;
7c083ecb 119 int sysctl_tcp_synack_retries;
12ed8244 120 int sysctl_tcp_syncookies;
1043e25f 121 int sysctl_tcp_reordering;
ae5c3f40 122 int sysctl_tcp_retries1;
c6214a97 123 int sysctl_tcp_retries2;
c402d9be 124 int sysctl_tcp_orphan_retries;
1e579caa 125 int sysctl_tcp_fin_timeout;
4979f2d9 126 unsigned int sysctl_tcp_notsent_lowat;
56ab6b93 127 int sysctl_tcp_tw_reuse;
f9301034 128 int sysctl_tcp_sack;
9bb37ef0 129 int sysctl_tcp_window_scaling;
5d2ed052 130 int sysctl_tcp_timestamps;
2ae21cf5 131 int sysctl_tcp_early_retrans;
e20223f1 132 int sysctl_tcp_recovery;
2c04ac8a 133 int sysctl_tcp_thin_linear_timeouts;
b510f0d2 134 int sysctl_tcp_slow_start_after_idle;
e0a1e5b5 135 int sysctl_tcp_retrans_collapse;
3f4c7c6f 136 int sysctl_tcp_stdurg;
625357aa 137 int sysctl_tcp_rfc1337;
65c9410c 138 int sysctl_tcp_abort_on_overflow;
0bc65a28 139 int sysctl_tcp_fack;
c6e21803 140 int sysctl_tcp_max_reordering;
6496f6bd 141 int sysctl_tcp_dsack;
0c12654a 142 int sysctl_tcp_app_win;
94f0893e 143 int sysctl_tcp_adv_win_scale;
af9b69a7 144 int sysctl_tcp_frto;
ec36e416 145 int sysctl_tcp_nometrics_save;
4540c0cf 146 int sysctl_tcp_moderate_rcvbuf;
d06a9904 147 int sysctl_tcp_tso_win_divisor;
ceef9ab6 148 int sysctl_tcp_workaround_signed_windows;
9184d8bb 149 int sysctl_tcp_limit_output_bytes;
b530b681 150 int sysctl_tcp_challenge_ack_limit;
26e9596e 151 int sysctl_tcp_min_tso_segs;
bd239704 152 int sysctl_tcp_min_rtt_wlen;
1946e672 153 struct inet_timewait_death_row tcp_death_row;
fee83d09 154 int sysctl_max_syn_backlog;
e1cfcbe8 155 int sysctl_tcp_fastopen;
43713848
HY
156 struct tcp_fastopen_context __rcu *tcp_fastopen_ctx;
157 spinlock_t tcp_fastopen_ctx_lock;
3733be14
HY
158 unsigned int sysctl_tcp_fastopen_blackhole_timeout;
159 atomic_t tfo_active_disable_times;
160 unsigned long tfo_active_disable_stamp;
12ed8244 161
63a6fff3
RS
162#ifdef CONFIG_NET_L3_MASTER_DEV
163 int sysctl_udp_l3mdev_accept;
164#endif
165
815c5270 166 int sysctl_igmp_max_memberships;
166b6b2d 167 int sysctl_igmp_max_msf;
87a8a2ae 168 int sysctl_igmp_llm_reports;
165094af 169 int sysctl_igmp_qrv;
815c5270 170
ba6b918a 171 struct ping_group_range ping_group_range;
c319b4d7 172
436c3b66 173 atomic_t dev_addr_genid;
70a269e6 174
122ff243
WC
175#ifdef CONFIG_SYSCTL
176 unsigned long *sysctl_local_reserved_ports;
4548b683 177 int sysctl_ip_prot_sock;
122ff243
WC
178#endif
179
70a269e6 180#ifdef CONFIG_IP_MROUTE
f0ad0860 181#ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
0c12295a 182 struct mr_table *mrt;
f0ad0860
PM
183#else
184 struct list_head mr_tables;
185 struct fib_rules_ops *mr_rules_ops;
186#endif
a6db4494
DA
187#endif
188#ifdef CONFIG_IP_ROUTE_MULTIPATH
189 int sysctl_fib_multipath_use_neigh;
bf4e0a3d 190 int sysctl_fib_multipath_hash_policy;
70a269e6 191#endif
cacaad11 192
04b1d4e5 193 struct fib_notifier_ops *notifier_ops;
cacaad11
IS
194 unsigned int fib_seq; /* protected by rtnl_mutex */
195
4d65b948
YG
196 struct fib_notifier_ops *ipmr_notifier_ops;
197 unsigned int ipmr_seq; /* protected by rtnl_mutex */
198
ca4c3fc2 199 atomic_t rt_genid;
8afd351c
PE
200};
201#endif