Skip to content

Commit fd82d61

Browse files
lxindavem330
authored andcommitted
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. Fixes: b444153 ("sctp: add support for generating add stream change event notification") Reported-by: Jianwen Ji <[email protected]> Signed-off-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1e2d3c4 commit fd82d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/uapi/linux/sctp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ struct sctp_assoc_reset_event {
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;

0 commit comments

Comments
 (0)