diff options
author | wangweidong <wangweidong1@huawei.com> | 2014-05-12 22:57:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-14 15:34:16 -0400 |
commit | 8ba7e7bfc39e05b57ed90a70db2b411b1204377b (patch) | |
tree | 9730e511da3e169819424812f74bbd4e9233a281 /net/dccp | |
parent | c9f2dba61b52d3cab70c176554cf955059a434ba (diff) |
dccp: make the request_retries minimum is 1
In Documentation/networking/dccp.txt points that request_retries
should be greater than 0. So make the extra1 to be &one instead
of &zero.
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 607ab71b5a0c..53731e45403c 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | /* Boundary values */ | 21 | /* Boundary values */ |
22 | static int zero = 0, | 22 | static int zero = 0, |
23 | one = 1, | ||
23 | u8_max = 0xFF; | 24 | u8_max = 0xFF; |
24 | static unsigned long seqw_min = DCCPF_SEQ_WMIN, | 25 | static unsigned long seqw_min = DCCPF_SEQ_WMIN, |
25 | seqw_max = 0xFFFFFFFF; /* maximum on 32 bit */ | 26 | seqw_max = 0xFFFFFFFF; /* maximum on 32 bit */ |
@@ -58,7 +59,7 @@ static struct ctl_table dccp_default_table[] = { | |||
58 | .maxlen = sizeof(sysctl_dccp_request_retries), | 59 | .maxlen = sizeof(sysctl_dccp_request_retries), |
59 | .mode = 0644, | 60 | .mode = 0644, |
60 | .proc_handler = proc_dointvec_minmax, | 61 | .proc_handler = proc_dointvec_minmax, |
61 | .extra1 = &zero, | 62 | .extra1 = &one, |
62 | .extra2 = &u8_max, | 63 | .extra2 = &u8_max, |
63 | }, | 64 | }, |
64 | { | 65 | { |