summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/tcp
diff options
context:
space:
mode:
authorMark Fenwick <Mark.Fenwick@Sun.COM>2010-01-07 13:02:09 -0800
committerMark Fenwick <Mark.Fenwick@Sun.COM>2010-01-07 13:02:09 -0800
commit7426816e3875d9a22cc776c78ec4e696f0cbb4aa (patch)
treef6da9c0cc39b393e44f0f6e4e319f11c6066a7e0 /usr/src/uts/common/inet/tcp
parentc144956179190829a882ff695f7771ba19f65bec (diff)
downloadillumos-gate-7426816e3875d9a22cc776c78ec4e696f0cbb4aa.tar.gz
6913254 TCP does not initialise TH_ACK and TH_URG fields when TH_SYN set.
Diffstat (limited to 'usr/src/uts/common/inet/tcp')
-rw-r--r--usr/src/uts/common/inet/tcp/tcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp.c b/usr/src/uts/common/inet/tcp/tcp.c
index 759c13b39c..81fa835e3e 100644
--- a/usr/src/uts/common/inet/tcp/tcp.c
+++ b/usr/src/uts/common/inet/tcp/tcp.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990 Mentat Inc. */
@@ -8800,6 +8800,8 @@ tcp_build_hdrs(tcp_t *tcp)
bcopy(buf, connp->conn_ht_ulp, buflen);
} else {
tcpha->tha_sum = 0;
+ tcpha->tha_urp = 0;
+ tcpha->tha_ack = 0;
tcpha->tha_offset_and_reserved = (5 << 4);
tcpha->tha_lport = connp->conn_lport;
tcpha->tha_fport = connp->conn_fport;