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
490 sctp_assoc_t sender_dry_assoc_id;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
497struct 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 * Described in Section 7.3506 * Described in Section 7.3
495 * Ancillary Data and Notification Interest Options507 * Ancillary Data and Notification Interest Options
@@ -505,6 +517,7 @@ struct sctp_event_subscribe { · 9 unmodified lines
505 __u8 sctp_adaptation_layer_event;517 __u8 sctp_adaptation_layer_event;
506 __u8 sctp_authentication_event;518 __u8 sctp_authentication_event;
507 __u8 sctp_sender_dry_event;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 struct sctp_pdapi_event sn_pdapi_event;542 struct sctp_pdapi_event sn_pdapi_event;
530 struct sctp_authkey_event sn_authkey_event;543 struct sctp_authkey_event sn_authkey_event;
531 struct sctp_sender_dry_event sn_sender_dry_event;544 struct sctp_sender_dry_event sn_sender_dry_event;
545 struct sctp_stream_reset_event sn_strreset_event;
532};546};
533 547
534/* Section 5.3.1548/* Section 5.3.1
@@ -556,6 +570,8 @@ enum sctp_sn_type { · 21 unmodified lines
556#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT570#define SCTP_AUTHENTICATION_INDICATION SCTP_AUTHENTICATION_EVENT
557 SCTP_SENDER_DRY_EVENT,571 SCTP_SENDER_DRY_EVENT,
558#define SCTP_SENDER_DRY_EVENT SCTP_SENDER_DRY_EVENT572#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/* Notification error codes used to fill up the error fields in some577/* Notification error codes used to fill up the error fields in some