sctp: support SCTP_FUTURE/CURRENT/ALL_ASSOC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest24 patches 9 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
None of the 24 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Neil Horman |
|---|---|
| Series | A-b |
| 1/24 | |
| 2/24 | |
| 3/24 | |
| 4/24 | |
| 5/24 | |
| 6/24 | |
| 7/24 | |
| 8/24 | |
| 9/24 | |
| 10/24 | |
| 11/24 | |
| 12/24 | |
| 13/24 | |
| 14/24 | |
| 15/24 | |
| 16/24 | |
| 17/24 | |
| 18/24 | |
| 19/24 | |
| 20/24 | |
| 21/24 | |
| 22/24 | |
| 23/24 | |
| 24/24 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 00/24] sctp: support SCTP_FUTURE/CURRENT/ALL_ASSOC
This patchset adds the support for 3 assoc_id constants: SCTP_FUTURE_ASSOC SCTP_CURRENT_ASSOC, SCTP_ALL_ASSOC, described in rfc6458#section-7.2:
All socket options set on a one-to-one style listening socket also apply to all future accepted sockets. For one-to-many style sockets, often a socket option will pass a structure that includes an assoc_id field. This field can be filled with the association identifier of a particular association and unless otherwise specified can be filled with one of the following constants:
SCTP_FUTURE_ASSOC: Specifies that only future associations created
after this socket option will be affected by this call.
SCTP_CURRENT_ASSOC: Specifies that only currently existing
associations will be affected by this call, and future associations will still receive the previous default value.
SCTP_ALL_ASSOC: Specifies that all current and future associations
will be affected by this call.
The functions for many other sockopts that use assoc_id also need to be updated accordingly.
Xin Long (24):
sctp: introduce SCTP_FUTURE/CURRENT/ALL_ASSOC
sctp: use SCTP_FUTURE_ASSOC for SCTP_PEER_ADDR_PARAMS sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_RTOINFO sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_ASSOCINFO sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_MAXSEG sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_LOCAL_AUTH_CHUNKS sockopt
sctp: add SCTP_FUTURE_ASSOC for SCTP_PEER_ADDR_THLDS sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_PR_SUPPORTED sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_RECONFIG_SUPPORTED sockopt
sctp: use SCTP_FUTURE_ASSOC for SCTP_INTERLEAVING_SUPPORTED sockopt
sctp: add SCTP_CURRENT_ASSOC for SCTP_STREAM_SCHEDULER_VALUE sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_DELAYED_SACK sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_DEFAULT_SEND_PARAM sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_DEFAULT_SNDINFO sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_CONTEXT sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_MAX_BURST sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_AUTH_KEY sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_AUTH_ACTIVE_KEY sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_AUTH_DELETE_KEY sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_AUTH_DEACTIVATE_KEY sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_DEFAULT_PRINFO sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for
SCTP_ENABLE_STREAM_RESET sockopt
sctp: use SCTP_FUTURE_ASSOC and add SCTP_CURRENT_ASSOC for SCTP_EVENT
sockopt
sctp: add SCTP_FUTURE_ASOC and SCTP_CURRENT_ASSOC for
SCTP_STREAM_SCHEDULER sockopt
include/net/sctp/structs.h | 4 + include/uapi/linux/sctp.h | 4 + net/sctp/associola.c | 9 +- net/sctp/outqueue.c | 2 +- net/sctp/socket.c | 773 ++++++++++++++++++++++++++++++--------------- 5 files changed, 525 insertions(+), 267 deletions(-)
Signature · 1 line
2.1.0