Skip to contentSkip to conversation

sctp: assure at least one T3-rtx timer is running if a

PATCH New Wei Yongjun 1 participant 1 message Jan 20, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sctp: assure at least one T3-rtx timer is running if a

PR-SCTP extension section 3.5 Sender Side Implementation of PR-SCTP:
C5) If a FORWARD TSN is sent, the sender MUST assure that at
least one T3-rtx timer is running.

So this patch fix to assure at least one T3-rtx timer is running if a FORWARD TSN is or will to sent.

---
 net/sctp/outqueue.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
net/sctp/outqueue.c +6 -0
index 229690f..7521217 100644
@@ -853,6 +853,12 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
 			if (status  != SCTP_XMIT_OK) {
 				/* put the chunk back */
 				list_add(&chunk->list, &q->control_chunk_list);
+			} else if (chunk->chunk_hdr->type = SCTP_CID_FWD_TSN) {
+				/* PR-SCTP C5) If a FORWARD TSN is sent, the
+				 * sender MUST assure that at least one T3-rtx
+				 * timer is running.
+				 */
+				sctp_transport_reset_timers(transport, 0);
 			}
 			break;
 
Signature · 1 line
1.6.2.2