History

sctp: fix strchange_flags name for Stream Change Event

As defined in rfc6525#section-6.1.3, SCTP_STREAM_CHANGE_DENIED and SCTP_STREAM_CHANGE_FAILED should be used instead of SCTP_ASSOC_CHANGE_DENIED and SCTP_ASSOC_CHANGE_FAILED. To keep the compatibility, fix it by adding two macros.

Xin Long committed 8 years ago

Commit fd82d611 parent 1e2d3c41 file · +2 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/sctp.h+2−0
@@ -568,6 +568,8 @@ struct sctp_assoc_reset_event { · 567 unmodified lines
568568
569569 #define SCTP_ASSOC_CHANGE_DENIED 0x0004
570570 #define SCTP_ASSOC_CHANGE_FAILED 0x0008
571+#define SCTP_STREAM_CHANGE_DENIED SCTP_ASSOC_CHANGE_DENIED
572+#define SCTP_STREAM_CHANGE_FAILED SCTP_ASSOC_CHANGE_FAILED
571573 struct sctp_stream_change_event {
572574 __u16 strchange_type;
573575 __u16 strchange_flags;