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.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index e2c679baf912..0669778e4335 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -52,6 +52,10 @@ static int int_max = INT_MAX;
52static long sack_timer_min = 1; 52static long sack_timer_min = 1;
53static long sack_timer_max = 500; 53static long sack_timer_max = 500;
54 54
55extern int sysctl_sctp_mem[3];
56extern int sysctl_sctp_rmem[3];
57extern int sysctl_sctp_wmem[3];
58
55static ctl_table sctp_table[] = { 59static ctl_table sctp_table[] = {
56 { 60 {
57 .ctl_name = NET_SCTP_RTO_INITIAL, 61 .ctl_name = NET_SCTP_RTO_INITIAL,
@@ -226,6 +230,39 @@ static ctl_table sctp_table[] = {
226 .extra1 = &sack_timer_min, 230 .extra1 = &sack_timer_min,
227 .extra2 = &sack_timer_max, 231 .extra2 = &sack_timer_max,
228 }, 232 },
233 {
234 .ctl_name = CTL_UNNUMBERED,
235 .procname = "sctp_mem",
236 .data = &sysctl_sctp_mem,
237 .maxlen = sizeof(sysctl_sctp_mem),
238 .mode = 0644,
239 .proc_handler = &proc_dointvec,
240 },
241 {
242 .ctl_name = CTL_UNNUMBERED,
243 .procname = "sctp_rmem",
244 .data = &sysctl_sctp_rmem,
245 .maxlen = sizeof(sysctl_sctp_rmem),
246 .mode = 0644,
247 .proc_handler = &proc_dointvec,
248 },
249 {
250 .ctl_name = CTL_UNNUMBERED,
251 .procname = "sctp_wmem",
252 .data = &sysctl_sctp_wmem,
253 .maxlen = sizeof(sysctl_sctp_wmem),
254 .mode = 0644,
255 .proc_handler = &proc_dointvec,
256 },
257 {
258 .ctl_name = CTL_UNNUMBERED,
259 .procname = "auth_enable",
260 .data = &sctp_auth_enable,
261 .maxlen = sizeof(int),
262 .mode = 0644,
263 .proc_handler = &proc_dointvec,
264 .strategy = &sysctl_intvec
265 },
229 { .ctl_name = 0 } 266 { .ctl_name = 0 }
230}; 267};
231 268