History

sctp: add support for generating add stream change event notification

This patch is to add Stream Change Event described in rfc6525 section 6.1.3.

Xin Long committed 9 years ago

Commit b4441531 parent 692787c3 files · +47 −0Browse files

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

Unified · Split

include/uapi/linux/sctp.h+15−0
@@ -513,6 +513,17 @@ struct sctp_assoc_reset_event { · 512 unmodified lines
513513 __u32 assocreset_remote_tsn;
514514 };
515515
516+#define SCTP_ASSOC_CHANGE_DENIED 0x0004
517+#define SCTP_ASSOC_CHANGE_FAILED 0x0008
518+struct sctp_stream_change_event {
519+ __u16 strchange_type;
520+ __u16 strchange_flags;
521+ __u32 strchange_length;
522+ sctp_assoc_t strchange_assoc_id;
523+ __u16 strchange_instrms;
524+ __u16 strchange_outstrms;
525+};
526+
516527 /*
517528 * Described in Section 7.3
518529 * Ancillary Data and Notification Interest Options
@@ -530,6 +541,7 @@ struct sctp_event_subscribe { · 11 unmodified lines
530541 __u8 sctp_sender_dry_event;
531542 __u8 sctp_stream_reset_event;
532543 __u8 sctp_assoc_reset_event;
544+ __u8 sctp_stream_change_event;
533545 };
534546
535547 /*
@@ -556,6 +568,7 @@ union sctp_notification { · 20 unmodified lines
556568 struct sctp_sender_dry_event sn_sender_dry_event;
557569 struct sctp_stream_reset_event sn_strreset_event;
558570 struct sctp_assoc_reset_event sn_assocreset_event;
571+ struct sctp_stream_change_event sn_strchange_event;
559572 };
560573
561574 /* Section 5.3.1
@@ -587,6 +600,8 @@ enum sctp_sn_type { · 25 unmodified lines
587600 #define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT
588601 SCTP_ASSOC_RESET_EVENT,
589602 #define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT
603+ SCTP_STREAM_CHANGE_EVENT,
604+#define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT
590605 };
591606
592607 /* Notification error codes used to fill up the error fields in some