sctp: introduce SCTP_FUTURE/CURRENT/ALL_ASSOC
authorXin Long <lucien.xin@gmail.com>
Mon, 28 Jan 2019 07:08:23 +0000 (15:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 08:44:06 +0000 (00:44 -0800)
commit80df2704a375bb4b3c9c5cce9c00052361b16d61
tree2bb7fa56869240519a17020cde93742bdeb2b3b1
parentbde52726430755a25e1c28e26e7fa4a7967d4680
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>
include/uapi/linux/sctp.h
net/sctp/associola.c
net/sctp/socket.c