46 #include <linux/sysctl.h>
50 static int timer_max = 86400000;
52 static int sack_timer_min = 1;
53 static int sack_timer_max = 500;
54 static int addr_scope_max = 3;
55 static int rwnd_scale_max = 16;
56 static unsigned long max_autoclose_min = 0;
57 static unsigned long max_autoclose_max =
74 .procname =
"sctp_rmem",
81 .procname =
"sctp_wmem",
95 .maxlen =
sizeof(
unsigned int),
102 .procname =
"rto_min",
104 .maxlen =
sizeof(
unsigned int),
111 .procname =
"rto_max",
113 .maxlen =
sizeof(
unsigned int),
120 .procname =
"rto_alpha_exp_divisor",
122 .maxlen =
sizeof(
int),
127 .procname =
"rto_beta_exp_divisor",
129 .maxlen =
sizeof(
int),
134 .procname =
"max_burst",
136 .maxlen =
sizeof(
int),
143 .procname =
"cookie_preserve_enable",
144 .data = &
init_net.sctp.cookie_preserve_enable,
145 .maxlen =
sizeof(
int),
150 .procname =
"valid_cookie_life",
151 .data = &
init_net.sctp.valid_cookie_life,
152 .maxlen =
sizeof(
unsigned int),
159 .procname =
"sack_timeout",
160 .data = &
init_net.sctp.sack_timeout,
161 .maxlen =
sizeof(
int),
164 .extra1 = &sack_timer_min,
165 .extra2 = &sack_timer_max,
168 .procname =
"hb_interval",
170 .maxlen =
sizeof(
unsigned int),
177 .procname =
"association_max_retrans",
178 .data = &
init_net.sctp.max_retrans_association,
179 .maxlen =
sizeof(
int),
186 .procname =
"path_max_retrans",
187 .data = &
init_net.sctp.max_retrans_path,
188 .maxlen =
sizeof(
int),
195 .procname =
"max_init_retransmits",
196 .data = &
init_net.sctp.max_retrans_init,
197 .maxlen =
sizeof(
int),
204 .procname =
"pf_retrans",
206 .maxlen =
sizeof(
int),
213 .procname =
"sndbuf_policy",
214 .data = &
init_net.sctp.sndbuf_policy,
215 .maxlen =
sizeof(
int),
220 .procname =
"rcvbuf_policy",
221 .data = &
init_net.sctp.rcvbuf_policy,
222 .maxlen =
sizeof(
int),
227 .procname =
"default_auto_asconf",
228 .data = &
init_net.sctp.default_auto_asconf,
229 .maxlen =
sizeof(
int),
234 .procname =
"addip_enable",
235 .data = &
init_net.sctp.addip_enable,
236 .maxlen =
sizeof(
int),
241 .procname =
"addip_noauth_enable",
242 .data = &
init_net.sctp.addip_noauth,
243 .maxlen =
sizeof(
int),
248 .procname =
"prsctp_enable",
249 .data = &
init_net.sctp.prsctp_enable,
250 .maxlen =
sizeof(
int),
255 .procname =
"auth_enable",
257 .maxlen =
sizeof(
int),
262 .procname =
"addr_scope_policy",
263 .data = &
init_net.sctp.scope_policy,
264 .maxlen =
sizeof(
int),
268 .extra2 = &addr_scope_max,
271 .procname =
"rwnd_update_shift",
272 .data = &
init_net.sctp.rwnd_upd_shift,
273 .maxlen =
sizeof(
int),
277 .extra2 = &rwnd_scale_max,
280 .procname =
"max_autoclose",
281 .data = &
init_net.sctp.max_autoclose,
282 .maxlen =
sizeof(
unsigned long),
285 .extra1 = &max_autoclose_min,
286 .extra2 = &max_autoclose_max,
301 for (i = 0; table[
i].
data; i++)
302 table[i].
data += (
char *)(&net->sctp) - (
char *)&
init_net.sctp;