svn commit: r242248 - user/andre/tcp_workqueue/sys/netinet

Andre Oppermann andre at FreeBSD.org
Sun Oct 28 17:06:51 UTC 2012


Author: andre
Date: Sun Oct 28 17:06:50 2012
New Revision: 242248
URL: http://svn.freebsd.org/changeset/base/242248

Log:
  Add missing "else" to multi-"if" statement in cc_conn_init().

Modified:
  user/andre/tcp_workqueue/sys/netinet/tcp_input.c

Modified: user/andre/tcp_workqueue/sys/netinet/tcp_input.c
==============================================================================
--- user/andre/tcp_workqueue/sys/netinet/tcp_input.c	Sun Oct 28 16:21:46 2012	(r242247)
+++ user/andre/tcp_workqueue/sys/netinet/tcp_input.c	Sun Oct 28 17:06:50 2012	(r242248)
@@ -373,7 +373,7 @@ cc_conn_init(struct tcpcb *tp)
 		/* Per RFC5681 Section 3.1 */
 		if (tp->t_maxseg > 2190)
 			tp->snd_cwnd = 2 * tp->t_maxseg;
-		if (tp->t_maxseg > 1095)
+		else if (tp->t_maxseg > 1095)
 			tp->snd_cwnd = 3 * tp->t_maxseg;
 		else
 			tp->snd_cwnd = 4 * tp->t_maxseg;


More information about the svn-src-user mailing list