sctp: Add sysctl support for Auto-ASCONF.
authorMichio Honda <micchie@sfc.wide.ad.jp>
Tue, 26 Apr 2011 08:36:05 +0000 (17:36 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2011 09:04:53 +0000 (02:04 -0700)
This patch allows the system administrator to change default
Auto-ASCONF on/off behavior via an sysctl value.

Signed-off-by: Michio Honda <micchie@sfc.wide.ad.jp>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sysctl.c

index 50cb57f0919e780bed02f6f963e62faf6d13144e..6b3952961b858369d8a63b908b0911357a9e28e7 100644 (file)
@@ -182,6 +182,13 @@ static ctl_table sctp_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
+       {
+               .procname       = "default_auto_asconf",
+               .data           = &sctp_default_auto_asconf,
+               .maxlen         = sizeof(int),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec,
+       },
        {
                .procname       = "prsctp_enable",
                .data           = &sctp_prsctp_enable,