History

sctp: add support for generating stream ssn reset event notification

This patch is to add Stream Reset Event described in rfc6525 section 6.1.1.

Xin Long committed 9 years ago

Commit 35ea82d1 parent bd4b9f83 files · +49 −0Browse files

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

Unified · Split

include/uapi/linux/sctp.h+16−0
@@ -490,6 +490,18 @@ struct sctp_sender_dry_event { · 489 unmodified lines
490490 sctp_assoc_t sender_dry_assoc_id;
491491 };
492492
493+#define SCTP_STREAM_RESET_INCOMING_SSN 0x0001
494+#define SCTP_STREAM_RESET_OUTGOING_SSN 0x0002
495+#define SCTP_STREAM_RESET_DENIED 0x0004
496+#define SCTP_STREAM_RESET_FAILED 0x0008
497+struct sctp_stream_reset_event {
498+ __u16 strreset_type;
499+ __u16 strreset_flags;
500+ __u32 strreset_length;
501+ sctp_assoc_t strreset_assoc_id;
502+ __u16 strreset_stream_list[];
503+};
504+
493505 /*
494506 * Described in Section 7.3
495507 * Ancillary Data and Notification Interest Options
@@ -505,6 +517,7 @@ struct sctp_event_subscribe { · 9 unmodified lines
505517 __u8 sctp_adaptation_layer_event;
506518 __u8 sctp_authentication_event;
507519 __u8 sctp_sender_dry_event;
520+ __u8 sctp_stream_reset_event;
508521 };
509522
510523 /*
@@ -529,6 +542,7 @@ union sctp_notification { · 18 unmodified lines
529542 struct sctp_pdapi_event sn_pdapi_event;
530543 struct sctp_authkey_event sn_authkey_event;
531544 struct sctp_sender_dry_event sn_sender_dry_event;
545+ struct sctp_stream_reset_event sn_strreset_event;
532546 };
533547
534548 /* Section 5.3.1
@@ -556,6 +570,8 @@ enum sctp_sn_type { · 21 unmodified lines
556570 #define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
557571 SCTP_SENDER_DRY_EVENT,
558572 #define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT
573+ SCTP_STREAM_RESET_EVENT,
574+#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT
559575 };
560576
561577 /* Notification error codes used to fill up the error fields in some