This patch is to add Stream Reset Event described in rfc6525 section 6.1.1.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -490,6 +490,18 @@ struct sctp_sender_dry_event { · 489 unmodified lines | ||
| 490 | 490 | sctp_assoc_t sender_dry_assoc_id; |
| 491 | 491 | }; |
| 492 | 492 | |
| 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 | + | |
| 493 | 505 | /* |
| 494 | 506 | * Described in Section 7.3 |
| 495 | 507 | * Ancillary Data and Notification Interest Options |
| @@ -505,6 +517,7 @@ struct sctp_event_subscribe { · 9 unmodified lines | ||
| 505 | 517 | __u8 sctp_adaptation_layer_event; |
| 506 | 518 | __u8 sctp_authentication_event; |
| 507 | 519 | __u8 sctp_sender_dry_event; |
| 520 | + __u8 sctp_stream_reset_event; | |
| 508 | 521 | }; |
| 509 | 522 | |
| 510 | 523 | /* |
| @@ -529,6 +542,7 @@ union sctp_notification { · 18 unmodified lines | ||
| 529 | 542 | struct sctp_pdapi_event sn_pdapi_event; |
| 530 | 543 | struct sctp_authkey_event sn_authkey_event; |
| 531 | 544 | struct sctp_sender_dry_event sn_sender_dry_event; |
| 545 | + struct sctp_stream_reset_event sn_strreset_event; | |
| 532 | 546 | }; |
| 533 | 547 | |
| 534 | 548 | /* Section 5.3.1 |
| @@ -556,6 +570,8 @@ enum sctp_sn_type { · 21 unmodified lines | ||
| 556 | 570 | #define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT |
| 557 | 571 | SCTP_SENDER_DRY_EVENT, |
| 558 | 572 | #define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT |
| 573 | + SCTP_STREAM_RESET_EVENT, | |
| 574 | +#define SCTP_STREAM_RESET_EVENT SCTP_STREAM_RESET_EVENT | |
| 559 | 575 | }; |
| 560 | 576 | |
| 561 | 577 | /* Notification error codes used to fill up the error fields in some |