summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-12-28 07:46:42 -0200
committerRenato Botelho <renato@netgate.com>2015-12-28 07:46:42 -0200
commit0319542cc712df59c57f014b4f925f516bcb5b4b (patch)
treed471c26ca5a9ed2a730a1bbb6781f4e08c79a939 /sys/netinet/tcp_timer.c
parent3f9b44b7cebbdee8202dd56d8c57ac81b13114e1 (diff)
parent70f106975f9e06a5c50c4dfa06fb3b3d41d1780f (diff)
downloadFreeBSD-src-0319542cc712df59c57f014b4f925f516bcb5b4b.zip
FreeBSD-src-0319542cc712df59c57f014b4f925f516bcb5b4b.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 3dc3a81..c66cb76 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -596,7 +596,8 @@ tcp_timer_rexmt(void * xtp)
} else
tp->t_flags &= ~TF_PREVVALID;
TCPSTAT_INC(tcps_rexmttimeo);
- if (tp->t_state == TCPS_SYN_SENT)
+ if ((tp->t_state == TCPS_SYN_SENT) ||
+ (tp->t_state == TCPS_SYN_RECEIVED))
rexmt = TCPTV_RTOBASE * tcp_syn_backoff[tp->t_rxtshift];
else
rexmt = TCP_REXMTVAL(tp) * tcp_backoff[tp->t_rxtshift];
OpenPOWER on IntegriCloud