svn commit: r214877 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Nov 6 13:43:19 UTC 2010
Author: tuexen
Date: Sat Nov 6 13:43:18 2010
New Revision: 214877
URL: http://svn.freebsd.org/changeset/base/214877
Log:
Do not resend DATA chunks without delay when dropped by the peer and
the CRC was correct.
MFC after: 3 days.
Modified:
head/sys/netinet/sctp_input.c
Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c Sat Nov 6 13:30:54 2010 (r214876)
+++ head/sys/netinet/sctp_input.c Sat Nov 6 13:43:18 2010 (r214877)
@@ -3115,6 +3115,10 @@ process_chunk_drop(struct sctp_tcb *stcb
if ((tp1) && (tp1->sent < SCTP_DATAGRAM_ACKED)) {
uint8_t *ddp;
+ if (((flg & SCTP_BADCRC) == 0) &&
+ ((flg & SCTP_FROM_MIDDLE_BOX) == 0)) {
+ return (0);
+ }
if ((stcb->asoc.peers_rwnd == 0) &&
((flg & SCTP_FROM_MIDDLE_BOX) == 0)) {
SCTP_STAT_INCR(sctps_pdrpdiwnp);
More information about the svn-src-all
mailing list