tcp: initialize connection index on rst w packet 80/39680/2
authorFlorin Coras <fcoras@cisco.com>
Sat, 14 Oct 2023 22:01:48 +0000 (15:01 -0700)
committerDave Barach <vpp@barachs.net>
Mon, 16 Oct 2023 20:01:02 +0000 (20:01 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie01d7e8d6eddf3ba88f2cd6eb8369c8ec8179cb4

src/vnet/tcp/tcp_output.c

index 5172fca..61692fa 100644 (file)
@@ -667,6 +667,7 @@ tcp_send_reset_w_pkt (tcp_connection_t * tc, vlib_buffer_t * pkt,
 
   b = vlib_get_buffer (vm, bi);
   tcp_init_buffer (vm, b);
+  vnet_buffer (b)->tcp.connection_index = tc->c_c_index;
 
   /* Make and write options */
   tcp_hdr_len = sizeof (tcp_header_t);