summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/tcp/tcp.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2011-09-09 18:07:26 -0400
committerJerry Jelinek <jerry.jelinek@joyent.com>2011-09-09 18:07:26 -0400
commitc0e6663fe828dc0e5313994c7ac7527654f066f9 (patch)
tree168139640c99b419012587e2e91c9873cf34ea60 /usr/src/uts/common/inet/tcp/tcp.c
parente6dfee9e5996e10a6e71a6205b8753c21c96be4c (diff)
downloadillumos-joyent-c0e6663fe828dc0e5313994c7ac7527654f066f9.tar.gz
917 Make TCP's iss_incr a tunable
Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Garrett D'Amore <garrett@nexenta.com> Approved by: Albert Lee <trisk@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/inet/tcp/tcp.c')
-rw-r--r--usr/src/uts/common/inet/tcp/tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/uts/common/inet/tcp/tcp.c b/usr/src/uts/common/inet/tcp/tcp.c
index b941980da3..1bb87e5c56 100644
--- a/usr/src/uts/common/inet/tcp/tcp.c
+++ b/usr/src/uts/common/inet/tcp/tcp.c
@@ -3927,7 +3927,7 @@ tcp_iss_init(tcp_t *tcp)
tcp_stack_t *tcps = tcp->tcp_tcps;
conn_t *connp = tcp->tcp_connp;
- tcps->tcps_iss_incr_extra += (ISS_INCR >> 1);
+ tcps->tcps_iss_incr_extra += (tcps->tcps_iss_incr >> 1);
tcp->tcp_iss = tcps->tcps_iss_incr_extra;
switch (tcps->tcps_strong_iss) {
case 2:
@@ -3950,7 +3950,8 @@ tcp_iss_init(tcp_t *tcp)
tcp->tcp_iss += (gethrtime() >> ISS_NSEC_SHT) + tcp_random();
break;
default:
- tcp->tcp_iss += (uint32_t)gethrestime_sec() * ISS_INCR;
+ tcp->tcp_iss += (uint32_t)gethrestime_sec() *
+ tcps->tcps_iss_incr;
break;
}
tcp->tcp_valid_bits = TCP_ISS_VALID;