diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-01-28 15:08:23 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-30 00:44:06 -0800 |
commit | 80df2704a375bb4b3c9c5cce9c00052361b16d61 (patch) | |
tree | 2bb7fa56869240519a17020cde93742bdeb2b3b1 /include/uapi/linux/sctp.h | |
parent | bde52726430755a25e1c28e26e7fa4a7967d4680 (diff) | |
download | lwn-80df2704a375bb4b3c9c5cce9c00052361b16d61.tar.gz lwn-80df2704a375bb4b3c9c5cce9c00052361b16d61.zip |
sctp: introduce SCTP_FUTURE/CURRENT/ALL_ASSOC
This patch is to add 3 constants SCTP_FUTURE_ASSOC,
SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC for reserved
assoc_ids, as defined in rfc6458#section-7.2.
And add the process for them when doing lookup and
inserting in sctp_id2assoc and sctp_assoc_set_id.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h index d584073532b8..b8f2c4d56532 100644 --- a/include/uapi/linux/sctp.h +++ b/include/uapi/linux/sctp.h @@ -59,6 +59,10 @@ typedef __s32 sctp_assoc_t; +#define SCTP_FUTURE_ASSOC 0 +#define SCTP_CURRENT_ASSOC 1 +#define SCTP_ALL_ASSOC 2 + /* The following symbols come from the Sockets API Extensions for * SCTP <draft-ietf-tsvwg-sctpsocket-07.txt>. */ |