diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-11-13 10:23:52 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:18 -0500 |
commit | 2e2e9e92bd723244ea20fa488b1780111f2b05e1 (patch) | |
tree | 2e859b2b0aa17d2e18927fe110cdefad6c4f5fe6 /net/dccp/sysctl.c | |
parent | e11d9d30802278af22e78d8c10f348b683670cd9 (diff) |
[DCCP]: Add sysctls to control retransmission behaviour
This adds 3 sysctls which govern the retransmission behaviour of DCCP control
packets (3way handshake, feature negotiation).
It removes 4 FIXMEs from the code.
The close resemblance of sysctl variables to their TCP analogues is emphasised
not only by their name, but also by giving them the same initial values.
This is useful since there is not much practical experience with DCCP yet.
Furthermore, with regard to the previous patch, it is now possible to limit
the number of keepalive-Responses by setting net.dccp.default.request_retries
(also a bit like in TCP).
Lastly, added documentation of all existing DCCP sysctls.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/sysctl.c')
-rw-r--r-- | net/dccp/sysctl.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 38bc157876f3..7b09f2179985 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
13 | #include <linux/sysctl.h> | 13 | #include <linux/sysctl.h> |
14 | #include "dccp.h" | ||
14 | #include "feat.h" | 15 | #include "feat.h" |
15 | 16 | ||
16 | #ifndef CONFIG_SYSCTL | 17 | #ifndef CONFIG_SYSCTL |
@@ -66,6 +67,30 @@ static struct ctl_table dccp_default_table[] = { | |||
66 | .mode = 0644, | 67 | .mode = 0644, |
67 | .proc_handler = proc_dointvec, | 68 | .proc_handler = proc_dointvec, |
68 | }, | 69 | }, |
70 | { | ||
71 | .ctl_name = NET_DCCP_DEFAULT_REQ_RETRIES, | ||
72 | .procname = "request_retries", | ||
73 | .data = &sysctl_dccp_request_retries, | ||
74 | .maxlen = sizeof(sysctl_dccp_request_retries), | ||
75 | .mode = 0644, | ||
76 | .proc_handler = proc_dointvec, | ||
77 | }, | ||
78 | { | ||
79 | .ctl_name = NET_DCCP_DEFAULT_RETRIES1, | ||
80 | .procname = "retries1", | ||
81 | .data = &sysctl_dccp_retries1, | ||
82 | .maxlen = sizeof(sysctl_dccp_retries1), | ||
83 | .mode = 0644, | ||
84 | .proc_handler = proc_dointvec, | ||
85 | }, | ||
86 | { | ||
87 | .ctl_name = NET_DCCP_DEFAULT_RETRIES2, | ||
88 | .procname = "retries2", | ||
89 | .data = &sysctl_dccp_retries2, | ||
90 | .maxlen = sizeof(sysctl_dccp_retries2), | ||
91 | .mode = 0644, | ||
92 | .proc_handler = proc_dointvec, | ||
93 | }, | ||
69 | { .ctl_name = 0, } | 94 | { .ctl_name = 0, } |
70 | }; | 95 | }; |
71 | 96 | ||