summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorAndras Olah <olah@FreeBSD.org>1995-11-03 22:08:13 +0000
committerAndras Olah <olah@FreeBSD.org>1995-11-03 22:08:13 +0000
commita45d27261da492e9fc50e93e61770f4693bda7c3 (patch)
tree9b3a8e7df4e0197a04c16458af0e284ac3f222fe /sys/netinet/tcp_output.c
parent042cd119d32538cfb1984dc8765682959942e491 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 9afaf97b6af6..f2387615df4f 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.4 (Berkeley) 5/24/95
- * $Id: tcp_output.c,v 1.14 1995/09/22 20:05:58 wollman Exp $
+ * $Id: tcp_output.c,v 1.15 1995/10/16 18:21:12 wollman Exp $
*/
#include <sys/param.h>
@@ -384,15 +384,8 @@ send:
case TH_SYN:
opt[optlen++] = TCPOPT_NOP;
opt[optlen++] = TCPOPT_NOP;
-
- if (taop->tao_ccsent != 0 &&
- CC_GEQ(tp->cc_send, taop->tao_ccsent)) {
- opt[optlen++] = TCPOPT_CC;
- taop->tao_ccsent = tp->cc_send;
- } else {
- opt[optlen++] = TCPOPT_CCNEW;
- taop->tao_ccsent = 0;
- }
+ opt[optlen++] = tp->t_flags & TF_SENDCCNEW ?
+ TCPOPT_CCNEW : TCPOPT_CC;
opt[optlen++] = TCPOLEN_CC;
*(u_int32_t *)&opt[optlen] = htonl(tp->cc_send);
optlen += 4;