Skip to contentSkip to conversation

sctp: fix to send FORWARD-TSN chunk only if peer has such

PATCH New Wei Yongjun 1 participant 1 message Mar 9, 2009

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

PATCH 1/1 sctp: fix to send FORWARD-TSN chunk only if peer has such

RFC3758 Section 3.3.1. Sending Forward-TSN-Supported param in INIT

Note that if the endpoint chooses NOT to include the parameter, then at no time during the life of the association can it send or process a FORWARD TSN.

If peer does not support PR-SCTP capable, don't send FORWARD-TSN chunk to peer.

---
 net/sctp/outqueue.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
net/sctp/outqueue.c +3 -0
index a367d15..d765fc5 100644
@@ -1758,6 +1758,9 @@ static void sctp_generate_fwdtsn(struct sctp_outq *q, __u32 ctsn)
 	struct sctp_chunk *chunk;
 	struct list_head *lchunk, *temp;
 
+	if (!asoc->peer.prsctp_capable)
+		return;
+
 	/* PR-SCTP C1) Let SackCumAck be the Cumulative TSN ACK carried in the
 	 * received SACK.
 	 *
Signature · 1 line
1.5.3.8