]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7c114ecc21496f4d40fec670afbc22278646618
tree2bb7fa56869240519a17020cde93742bdeb2b3b1
parentfb1949cabd4439fbc8b3d711cac5890348912049
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