Re: [PATCHv2 net-next 3/8] sctp: implement validate_ftsn for sctp_stream_interleave

2017-12-14 Thread Marcelo Ricardo Leitner
On Fri, Dec 15, 2017 at 12:41:27AM +0800, Xin Long wrote: > validate_ftsn is added as a member of sctp_stream_interleave, used to > validate ssn/chunk type for fwdtsn or mid (message id)/chunk type for > ifwdtsn, called in sctp_sf_eat_fwd_tsn, just as validate_data. > > If this check fails, an abo

[PATCHv2 net-next 3/8] sctp: implement validate_ftsn for sctp_stream_interleave

2017-12-14 Thread Xin Long
validate_ftsn is added as a member of sctp_stream_interleave, used to validate ssn/chunk type for fwdtsn or mid (message id)/chunk type for ifwdtsn, called in sctp_sf_eat_fwd_tsn, just as validate_data. If this check fails, an abort packet will be sent, as said in section 2.3.1 of RFC8260. As ifw