]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add get and set sockopt for reconf_enable
authorXin Long <lucien.xin@gmail.com>
Fri, 10 Mar 2017 04:11:12 +0000 (12:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:22:24 +0000 (23:22 -0700)
commit145f195da6e54f780ce510eec8f41516d61dcf29
treef3b517d0315fe631e83a1734f647ab77c3283a3a
parent87f668e6dad9b9f15112f1fa4035a9838f9f2efb
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>
include/uapi/linux/sctp.h
net/sctp/socket.c
net/sctp/sysctl.c