aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Shvedunov <ivan4th@gmail.com>2020-07-29 19:15:41 +0300
committerIvan Shvedunov <ivan4th@gmail.com>2020-07-29 19:29:04 +0300
commite52eafd0471d7a6d2aca992d654786008d9a0f87 (patch)
treedfca9d78c2587ca587a0d001f9cc3734e8e12b8d
parent81b95c1fe2ece45ee2a5d895631b608733384182 (diff)
tcp: fix skipping RSTs in SYN_SENT state
Type: fix Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com> Change-Id: Ieddf8f03fdd14e71efaf4c78fe5b7f0d15c5cf5a
-rw-r--r--src/vnet/tcp/tcp_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c
index dfd3db6be5e..7f325719980 100644
--- a/src/vnet/tcp/tcp_input.c
+++ b/src/vnet/tcp/tcp_input.c
@@ -215,6 +215,7 @@ tcp_rcv_rst (tcp_worker_ctx_t * wrk, tcp_connection_t * tc)
break;
case TCP_STATE_SYN_SENT:
/* Do not program ntf because the connection is half-open */
+ tc->rst_state = tc->state;
tcp_handle_rst (tc);
break;
case TCP_STATE_ESTABLISHED: