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

Unified · Split

include/uapi/linux/sctp.h+2−0
@@ -568,6 +568,8 @@ struct sctp_assoc_reset_event { · 567 unmodified lines
568 568
569#define SCTP_ASSOC_CHANGE_DENIED 0x0004569#define SCTP_ASSOC_CHANGE_DENIED 0x0004
570#define SCTP_ASSOC_CHANGE_FAILED 0x0008570#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
571struct sctp_stream_change_event {573struct sctp_stream_change_event {
572 __u16 strchange_type;574 __u16 strchange_type;
573 __u16 strchange_flags;575 __u16 strchange_flags;