aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1996-01-31 11:02:05 +0000
committerDavid Greenman <dg@FreeBSD.org>1996-01-31 11:02:05 +0000
commit9e5479e60f899bffe180cc7ccf1bc627cc967489 (patch)
treeacfca405369829ae1d9139ee48ebe79d976cbfce /sys/netinet/tcp_output.c
parent2c778829f04535bec9272d4cc1504b649aa82d90 (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 958713c48e32..cfed3d2fb26f 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.3 (Berkeley) 12/30/93
- * $Id: tcp_output.c,v 1.12 1995/09/13 17:36:31 wollman Exp $
+ * $Id: tcp_output.c,v 1.11.4.1 1995/09/15 08:58:07 davidg 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;