]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sctp/outqueue.c
Merge current mainline tree into linux-omap tree
[linux-2.6-omap-h63xx.git] / net / sctp / outqueue.c
index bc411c89621635159713716a1747253f6d138a27..d765fc53e74dd63447d5d47a96664ecedbde45a8 100644 (file)
@@ -428,7 +428,8 @@ void sctp_retransmit_mark(struct sctp_outq *q,
                         * retransmitting due to T3 timeout.
                         */
                        if (reason == SCTP_RTXR_T3_RTX &&
-                           (jiffies - chunk->sent_at) < transport->last_rto)
+                           time_before(jiffies, chunk->sent_at +
+                                                transport->last_rto))
                                continue;
 
                        /* RFC 2960 6.2.1 Processing a Received SACK
@@ -1757,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.
         *