aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r--net/sctp/sysctl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index 50cb57f0919..60ffbd067ff 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -53,6 +53,10 @@ static int sack_timer_min = 1;
53static int sack_timer_max = 500; 53static int sack_timer_max = 500;
54static int addr_scope_max = 3; /* check sctp_scope_policy_t in include/net/sctp/constants.h for max entries */ 54static int addr_scope_max = 3; /* check sctp_scope_policy_t in include/net/sctp/constants.h for max entries */
55static int rwnd_scale_max = 16; 55static int rwnd_scale_max = 16;
56static unsigned long max_autoclose_min = 0;
57static unsigned long max_autoclose_max =
58 (MAX_SCHEDULE_TIMEOUT / HZ > UINT_MAX)
59 ? UINT_MAX : MAX_SCHEDULE_TIMEOUT / HZ;
56 60
57extern long sysctl_sctp_mem[3]; 61extern long sysctl_sctp_mem[3];
58extern int sysctl_sctp_rmem[3]; 62extern int sysctl_sctp_rmem[3];
@@ -183,6 +187,13 @@ static ctl_table sctp_table[] = {
183 .proc_handler = proc_dointvec, 187 .proc_handler = proc_dointvec,
184 }, 188 },
185 { 189 {
190 .procname = "default_auto_asconf",
191 .data = &sctp_default_auto_asconf,
192 .maxlen = sizeof(int),
193 .mode = 0644,
194 .proc_handler = proc_dointvec,
195 },
196 {
186 .procname = "prsctp_enable", 197 .procname = "prsctp_enable",
187 .data = &sctp_prsctp_enable, 198 .data = &sctp_prsctp_enable,
188 .maxlen = sizeof(int), 199 .maxlen = sizeof(int),
@@ -251,6 +262,15 @@ static ctl_table sctp_table[] = {
251 .extra1 = &one, 262 .extra1 = &one,
252 .extra2 = &rwnd_scale_max, 263 .extra2 = &rwnd_scale_max,
253 }, 264 },
265 {
266 .procname = "max_autoclose",
267 .data = &sctp_max_autoclose,
268 .maxlen = sizeof(unsigned long),
269 .mode = 0644,
270 .proc_handler = &proc_doulongvec_minmax,
271 .extra1 = &max_autoclose_min,
272 .extra2 = &max_autoclose_max,
273 },
254 274
255 { /* sentinel */ } 275 { /* sentinel */ }
256}; 276};