summaryrefslogtreecommitdiffstats
path: root/net/sctp/sysctl.c
diff options
context:
space:
mode:
authorXin Long2017-03-10 05:11:12 +0100
committerDavid S. Miller2017-03-13 07:22:24 +0100
commitc0d8bab6ae518cedfb5246e99ece43fe51d79b56 (patch)
treef3b517d0315fe631e83a1734f647ab77c3283a3a /net/sctp/sysctl.c
parentsctp: implement receiver-side procedures for the Reconf Response Parameter (diff)
downloadkernel-qcow2-linux-c0d8bab6ae518cedfb5246e99ece43fe51d79b56.tar.gz
kernel-qcow2-linux-c0d8bab6ae518cedfb5246e99ece43fe51d79b56.tar.xz
kernel-qcow2-linux-c0d8bab6ae518cedfb5246e99ece43fe51d79b56.zip
sctp: add get and set sockopt for reconf_enable
This patchset is to add SCTP_RECONFIG_SUPPORTED sockopt, it would set and get asoc reconf_enable value when asoc_id is set, or it would set and get ep reconf_enalbe value if asoc_id is 0. It is also to add sysctl interface for users to set the default value for reconf_enable. After this patch, stream reconf will work. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r--net/sctp/sysctl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index daf8554fd42a..0e732f68c2bf 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -275,6 +275,13 @@ static struct ctl_table sctp_net_table[] = {
.proc_handler = proc_dointvec,
},
{
+ .procname = "reconf_enable",
+ .data = &init_net.sctp.reconf_enable,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {
.procname = "auth_enable",
.data = &init_net.sctp.auth_enable,
.maxlen = sizeof(int),