History

sctp: add sockopt SCTP_ENABLE_STREAM_RESET

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.

Xin Long committed 9 years ago

Commit 9fb657a1 parent c28445c4 files · +96 −0Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/sctp.h+7−0
@@ -115,6 +115,7 @@ typedef __s32 sctp_assoc_t; · 114 unmodified lines
115115 #define SCTP_PR_SUPPORTED 113
116116 #define SCTP_DEFAULT_PRINFO 114
117117 #define SCTP_PR_ASSOC_STATUS 115
118+#define SCTP_ENABLE_STREAM_RESET 118
118119
119120 /* PR-SCTP policies */
120121 #define SCTP_PR_SCTP_NONE 0x0000
@@ -138,6 +139,12 @@ typedef __s32 sctp_assoc_t; · 17 unmodified lines
138139 #define SCTP_PR_RTX_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_RTX)
139140 #define SCTP_PR_PRIO_ENABLED(x) (SCTP_PR_POLICY(x) == SCTP_PR_SCTP_PRIO)
140141
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+
141148 /* These are bit fields for msghdr->msg_flags. See section 5.1. */
142149 /* On user space Linux, these live in <bits/socket.h> as an enum. */
143150 enum sctp_msg_flags {