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/dccp.h | |
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/dccp.h')
-rw-r--r-- | net/dccp/dccp.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index d5c414bf7819..e7b96074a1b1 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h | |||
@@ -64,6 +64,17 @@ extern void dccp_time_wait(struct sock *sk, int state, int timeo); | |||
64 | 64 | ||
65 | #define DCCP_XMIT_TIMEO 30000 /* Time/msecs for blocking transmit per packet */ | 65 | #define DCCP_XMIT_TIMEO 30000 /* Time/msecs for blocking transmit per packet */ |
66 | 66 | ||
67 | /* sysctl variables for DCCP */ | ||
68 | extern int sysctl_dccp_request_retries; | ||
69 | extern int sysctl_dccp_retries1; | ||
70 | extern int sysctl_dccp_retries2; | ||
71 | extern int dccp_feat_default_sequence_window; | ||
72 | extern int dccp_feat_default_rx_ccid; | ||
73 | extern int dccp_feat_default_tx_ccid; | ||
74 | extern int dccp_feat_default_ack_ratio; | ||
75 | extern int dccp_feat_default_send_ack_vector; | ||
76 | extern int dccp_feat_default_send_ndp_count; | ||
77 | |||
67 | /* is seq1 < seq2 ? */ | 78 | /* is seq1 < seq2 ? */ |
68 | static inline int before48(const u64 seq1, const u64 seq2) | 79 | static inline int before48(const u64 seq1, const u64 seq2) |
69 | { | 80 | { |