This patch is to add Stream Change Event described in rfc6525 section 6.1.3.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -513,6 +513,17 @@ struct sctp_assoc_reset_event { · 512 unmodified lines | |||
| 513 | __u32 assocreset_remote_tsn; | 513 | __u32 assocreset_remote_tsn; |
| 514 | }; | 514 | }; |
| 515 | 515 | ||
| 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 | |||
| 516 | /* | 527 | /* |
| 517 | * Described in Section 7.3 | 528 | * Described in Section 7.3 |
| 518 | * Ancillary Data and Notification Interest Options | 529 | * Ancillary Data and Notification Interest Options |
| @@ -530,6 +541,7 @@ struct sctp_event_subscribe { · 11 unmodified lines | |||
| 530 | __u8 sctp_sender_dry_event; | 541 | __u8 sctp_sender_dry_event; |
| 531 | __u8 sctp_stream_reset_event; | 542 | __u8 sctp_stream_reset_event; |
| 532 | __u8 sctp_assoc_reset_event; | 543 | __u8 sctp_assoc_reset_event; |
| 544 | __u8 sctp_stream_change_event; | ||
| 533 | }; | 545 | }; |
| 534 | 546 | ||
| 535 | /* | 547 | /* |
| @@ -556,6 +568,7 @@ union sctp_notification { · 20 unmodified lines | |||
| 556 | struct sctp_sender_dry_event sn_sender_dry_event; | 568 | struct sctp_sender_dry_event sn_sender_dry_event; |
| 557 | struct sctp_stream_reset_event sn_strreset_event; | 569 | struct sctp_stream_reset_event sn_strreset_event; |
| 558 | struct sctp_assoc_reset_event sn_assocreset_event; | 570 | struct sctp_assoc_reset_event sn_assocreset_event; |
| 571 | struct sctp_stream_change_event sn_strchange_event; | ||
| 559 | }; | 572 | }; |
| 560 | 573 | ||
| 561 | /* Section 5.3.1 | 574 | /* Section 5.3.1 |
| @@ -587,6 +600,8 @@ enum sctp_sn_type { · 25 unmodified lines | |||
| 587 | #define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT | 600 | #define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT |
| 588 | SCTP_ASSOC_RESET_EVENT, | 601 | SCTP_ASSOC_RESET_EVENT, |
| 589 | #define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT | 602 | #define SCTP_ASSOC_RESET_EVENT SCTP_ASSOC_RESET_EVENT |
| 603 | SCTP_STREAM_CHANGE_EVENT, | ||
| 604 | #define SCTP_STREAM_CHANGE_EVENT SCTP_STREAM_CHANGE_EVENT | ||
| 590 | }; | 605 | }; |
| 591 | 606 | ||
| 592 | /* Notification error codes used to fill up the error fields in some | 607 | /* Notification error codes used to fill up the error fields in some |