]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add SCTP_AUTH_SUPPORTED sockopt
authorXin Long <lucien.xin@gmail.com>
Mon, 19 Aug 2019 14:02:49 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:27:29 +0000 (18:27 -0700)
commit9d0379dbb88b98b708b94a6c36941bccaff62857
tree0688ad16be9e02992a32bf0099f65da9b45d822e
parent7443653818fb308a269099ee3b027bba9a350620
sctp: add SCTP_AUTH_SUPPORTED sockopt

SCTP_AUTH_SUPPORTED sockopt is used to set enpoint's auth
flag. With this feature, each endpoint will have its own
flag for its future asoc's auth_capable, instead of netns
auth flag.

Note that when both ep's auth_enable is enabled, endpoint
auth related data should be initialized. If asconf_enable
is also set, SCTP_CID_ASCONF/SCTP_CID_ASCONF_ACK should
be added into auth_chunk_list.

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