tcp: drop handshake ack with fin set 55/16455/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 13 Dec 2018 07:31:33 +0000 (23:31 -0800)
committerDave Barach <openvpp@barachs.net>
Thu, 13 Dec 2018 14:41:22 +0000 (14:41 +0000)
Change-Id: I529c34235ad2b0e4c730959bb1b8c9d50a83738c
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/tcp/tcp_input.c

index fc1aff4..94dcaaf 100644 (file)
@@ -2727,7 +2727,7 @@ 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)
+         if (tc0->rcv_nxt != vnet_buffer (b0)->tcp.seq_number || is_fin0)
            {
              error0 = TCP_ERROR_SEGMENT_INVALID;
              tcp_send_reset_w_pkt (tc0, b0, is_ip4);