Skip to content

Commit

Permalink
dccp: make the request_retries minimum is 1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wangweidong authored and David S. Miller committed May 14, 2014
1 parent c9f2dba commit 8ba7e7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/dccp/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/* Boundary values */
static int zero = 0,
one = 1,
u8_max = 0xFF;
static unsigned long seqw_min = DCCPF_SEQ_WMIN,
seqw_max = 0xFFFFFFFF; /* maximum on 32 bit */
Expand Down Expand Up @@ -58,7 +59,7 @@ static struct ctl_table dccp_default_table[] = {
.maxlen = sizeof(sysctl_dccp_request_retries),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra1 = &one,
.extra2 = &u8_max,
},
{
Expand Down

0 comments on commit 8ba7e7b

Please sign in to comment.