diff options
Diffstat (limited to 'net/dccp/sysctl.c')
-rw-r--r-- | net/dccp/sysctl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 1260aabac5e1..9364b2fb4dbd 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c | |||
@@ -18,6 +18,9 @@ | |||
18 | #error This file should not be compiled without CONFIG_SYSCTL defined | 18 | #error This file should not be compiled without CONFIG_SYSCTL defined |
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | /* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ | ||
22 | int sysctl_dccp_sync_ratelimit __read_mostly = HZ / 8; | ||
23 | |||
21 | static struct ctl_table dccp_default_table[] = { | 24 | static struct ctl_table dccp_default_table[] = { |
22 | { | 25 | { |
23 | .procname = "seq_window", | 26 | .procname = "seq_window", |
@@ -89,6 +92,13 @@ static struct ctl_table dccp_default_table[] = { | |||
89 | .mode = 0644, | 92 | .mode = 0644, |
90 | .proc_handler = proc_dointvec, | 93 | .proc_handler = proc_dointvec, |
91 | }, | 94 | }, |
95 | { | ||
96 | .procname = "sync_ratelimit", | ||
97 | .data = &sysctl_dccp_sync_ratelimit, | ||
98 | .maxlen = sizeof(sysctl_dccp_sync_ratelimit), | ||
99 | .mode = 0644, | ||
100 | .proc_handler = proc_dointvec_ms_jiffies, | ||
101 | }, | ||
92 | 102 | ||
93 | { .ctl_name = 0, } | 103 | { .ctl_name = 0, } |
94 | }; | 104 | }; |