diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-11-25 21:18:35 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-01 15:06:24 -0500 |
commit | e5f612969c6f965e3bd1158598e0a3b1c4f389b9 (patch) | |
tree | 4957b2abccb9a0b95294651446e1e124f4d3cab5 /drivers | |
parent | d30fc5126efb0c33b7adf5966d3051db2c3d7721 (diff) |
sctp: abandon the whole msg if one part of a fragmented message is abandoned
As rfc3758#section-3.1 demands:
A3) When a TSN is "abandoned", if it is part of a fragmented message,
all other TSN's within that fragmented message MUST be abandoned
at the same time.
Besides, if it couldn't handle this, the rest frags would never get
assembled in peer side.
This patch supports it by adding abandoned flag in sctp_datamsg, when
one chunk is being abandoned, set chunk->msg->abandoned as well. Next
time when checking for abandoned, go checking chunk->msg->abandoned
first.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions