dccp: make the request_retries minimum is 1
authorwangweidong <wangweidong1@huawei.com>
Tue, 13 May 2014 02:57:58 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:34:16 +0000 (15:34 -0400)
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>
net/dccp/sysctl.c

index 607ab71b5a0cb3af65067e7d69badb862d5bfb5a..53731e45403c83ba2edf48da01e71aeda48359b0 100644 (file)
@@ -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 */
@@ -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,
        },
        {