From: Wei Yongjun Date: Thu, 12 Mar 2009 09:49:19 +0000 (+0000) Subject: sctp: fix to send FORWARD-TSN chunk only if peer has such capable X-Git-Tag: MMI-PSA29.97-13-9~29230^2~255 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76595024ffab3599bd28ea014f6c23c1a8c8dd2c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sctp: fix to send FORWARD-TSN chunk only if peer has such capable 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. Signed-off-by: Wei Yongjun Signed-off-by: Vlad Yasevich Signed-off-by: David S. Miller --- diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index a367d15a21aa..d765fc53e74d 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c @@ -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. *