summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp.h
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2012-03-29 13:36:53 +0000
committerrrs <rrs@FreeBSD.org>2012-03-29 13:36:53 +0000
commitddfb5c5980b9ef2468b10441bf283e0215ee8340 (patch)
treee8748765c084ea52a09c31941d048f7e99380b2a /sys/netinet/sctp.h
parentf9d3dd9f9cd77a6a9c306d500cd4ab48dba96cc4 (diff)
downloadFreeBSD-src-ddfb5c5980b9ef2468b10441bf283e0215ee8340.zip
FreeBSD-src-ddfb5c5980b9ef2468b10441bf283e0215ee8340.tar.gz
Make stream our stream reset implementation
compliant to RFC6525. MFC after: 1 month
Diffstat (limited to 'sys/netinet/sctp.h')
-rw-r--r--sys/netinet/sctp.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/netinet/sctp.h b/sys/netinet/sctp.h
index 192a79b..d815891 100644
--- a/sys/netinet/sctp.h
+++ b/sys/netinet/sctp.h
@@ -155,8 +155,22 @@ struct sctp_paramhdr {
* field.
*/
-/* these should probably go into sockets API */
-#define SCTP_RESET_STREAMS 0x00001004 /* wo */
+#define SCTP_ENABLE_STREAM_RESET 0x00000900 /* struct
+ * sctp_assoc_value */
+#define SCTP_RESET_STREAMS 0x00000901 /* struct
+ * sctp_reset_streams */
+#define SCTP_RESET_ASSOC 0x00000902 /* sctp_assoc_t */
+#define SCTP_ADD_STREAMS 0x00000903 /* struct
+ * sctp_add_streams */
+
+/* For enable stream reset */
+#define SCTP_ENABLE_RESET_STREAM_REQ 0x00000001
+#define SCTP_ENABLE_RESET_ASSOC_REQ 0x00000002
+#define SCTP_ENABLE_CHANGE_ASSOC_REQ 0x00000004
+#define SCTP_ENABLE_VALUE_MASK 0x00000007
+/* For reset streams */
+#define SCTP_STREAM_RESET_INCOMING 0x00000001
+#define SCTP_STREAM_RESET_OUTGOING 0x00000002
/* here on down are more implementation specific */
OpenPOWER on IntegriCloud