From a0904f0e3f15873d01e2d5bc53d321a70412d5f4 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 22 Jul 2019 20:55:11 -0700 Subject: tcp: generate closed notifications whenever tcp closes Type: fix This gives the session layer a chance to to cleanup events. Change-Id: I7499e94acf06340e2b19a1d91a4c61a63cd66c52 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp_input.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/tcp/tcp_input.c') diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 6be6c3a081c..5f3764893c9 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2824,6 +2824,7 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, { tcp_connection_set_state (tc0, TCP_STATE_CLOSED); tcp_timer_set (tc0, TCP_TIMER_WAITCLOSE, TCP_CLEANUP_TIME); + session_transport_closed_notify (&tc0->connection); goto drop; } @@ -2898,6 +2899,7 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, } tcp_connection_set_state (tc0, TCP_STATE_CLOSED); + session_transport_closed_notify (&tc0->connection); /* Don't free the connection from the data path since * we can't ensure that we have no packets already enqueued -- cgit 1.2.3-korg