diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-08-19 17:02:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-20 04:27:29 +0300 |
commit | 56dd525abd56f7acd7b44a52935726e3ada4916c (patch) | |
tree | 0688ad16be9e02992a32bf0099f65da9b45d822e /include/uapi/linux/sctp.h | |
parent | 03f961270f4256fe9f47b94aea889bd26877216b (diff) | |
download | linux-56dd525abd56f7acd7b44a52935726e3ada4916c.tar.xz |
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>
Diffstat (limited to 'include/uapi/linux/sctp.h')
-rw-r--r-- | include/uapi/linux/sctp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h index 9b9b82debc0d..62527aca8477 100644 --- a/include/uapi/linux/sctp.h +++ b/include/uapi/linux/sctp.h @@ -135,6 +135,7 @@ typedef __s32 sctp_assoc_t; #define SCTP_SENDMSG_CONNECT 126 #define SCTP_EVENT 127 #define SCTP_ASCONF_SUPPORTED 128 +#define SCTP_AUTH_SUPPORTED 129 /* PR-SCTP policies */ #define SCTP_PR_SCTP_NONE 0x0000 |