This patch is to add sockopt SCTP_ENABLE_STREAM_RESET to get/set strreset_enable to indicate which reconf request type it supports, which is described in rfc6525 section 6.3.1.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -115,6 +115,7 @@ typedef __s32 sctp_assoc_t; · 114 unmodified lines | |||
| 115 | #define SCTP_PR_SUPPORTED 113 | 115 | #define SCTP_PR_SUPPORTED 113 |
| 116 | #define SCTP_DEFAULT_PRINFO 114 | 116 | #define SCTP_DEFAULT_PRINFO 114 |
| 117 | #define SCTP_PR_ASSOC_STATUS 115 | 117 | #define SCTP_PR_ASSOC_STATUS 115 |
| 118 | #define SCTP_ENABLE_STREAM_RESET 118 | ||
| 118 | 119 | ||
| 119 | /* PR-SCTP policies */ | 120 | /* PR-SCTP policies */ |
| 120 | #define SCTP_PR_SCTP_NONE 0x0000 | 121 | #define SCTP_PR_SCTP_NONE 0x0000 |
| @@ -138,6 +139,12 @@ typedef __s32 sctp_assoc_t; · 17 unmodified lines | |||
| 138 | #define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX) | 139 | #define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX) |
| 139 | #define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO) | 140 | #define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO) |
| 140 | 141 | ||
| 142 | /* For enable stream reset */ | ||
| 143 | #define SCTP_ENABLE_RESET_STREAM_REQ 0x01 | ||
| 144 | #define SCTP_ENABLE_RESET_ASSOC_REQ 0x02 | ||
| 145 | #define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x04 | ||
| 146 | #define SCTP_ENABLE_STRRESET_MASK 0x07 | ||
| 147 | |||
| 141 | /* These are bit fields for msghdr->msg_flags. See section 5.1. */ | 148 | /* These are bit fields for msghdr->msg_flags. See section 5.1. */ |
| 142 | /* On user space Linux, these live in <bits/socket.h> as an enum. */ | 149 | /* On user space Linux, these live in <bits/socket.h> as an enum. */ |
| 143 | enum sctp_msg_flags { | 150 | enum sctp_msg_flags { |