X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Ftcp%2Ftcp_input.c;h=91876feaf42bc569a58db9b3900bcbb7ab86c40d;hb=e78ac9debbe364f1bd6c59eb368d1f6bd38dfa32;hp=f0ae8b1143455c02cccf7378f8812297c1a6d19b;hpb=ec0cc2cf05dd5fe285e72b366d837eed841e34a8;p=vpp.git diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index f0ae8b11434..91876feaf42 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2720,8 +2720,7 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, */ if (!tcp_rcv_ack_is_acceptable (tc0, b0)) { - TCP_DBG ("connection not accepted"); - tcp_send_reset_w_pkt (tc0, b0, is_ip4); + tcp_connection_reset (tc0); error0 = TCP_ERROR_ACK_INVALID; goto drop; } @@ -2729,8 +2728,8 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, /* Make sure the ack is exactly right */ if (tc0->rcv_nxt != vnet_buffer (b0)->tcp.seq_number || is_fin0) { + tcp_connection_reset (tc0); error0 = TCP_ERROR_SEGMENT_INVALID; - tcp_send_reset_w_pkt (tc0, b0, is_ip4); goto drop; }