tcp_connection_set_state (tc, TCP_STATE_CLOSED);
break;
case TCP_STATE_SYN_SENT:
- tcp_program_reset_ntf (wrk, tc);
- tcp_connection_set_state (tc, TCP_STATE_CLOSED);
+ /* Do not program ntf because the connection is half-open */
+ tcp_handle_rst (tc);
break;
case TCP_STATE_ESTABLISHED:
tcp_connection_timers_reset (tc);
if (PREDICT_FALSE (error != TCP_ERROR_NONE))
{
- /* Overload tcp flags to store state */
- tcp_state_t state = tc->state;
- vnet_buffer (b)->tcp.flags = tc->state;
-
b->error = error_node->errors[error];
if (error == TCP_ERROR_DISPATCH)
clib_warning ("tcp conn %u disp error state %U flags %U",
- tc->c_c_index, format_tcp_state, state,
+ tc->c_c_index, format_tcp_state, tc->state,
format_tcp_flags, (int) flags);
}
}