diff options
author | Florin Coras <fcoras@cisco.com> | 2023-10-14 15:01:48 -0700 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2023-10-16 20:01:02 +0000 |
commit | 0094fe0190b623dbef0e57b7f4032ba3cf5f36b0 (patch) | |
tree | 1ccad2a2fd6b362819ce3918ffc52e1ffe281b17 | |
parent | da2ae9af61fbdb3b68eb72f8d35294fdb3720303 (diff) |
tcp: initialize connection index on rst w packet
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie01d7e8d6eddf3ba88f2cd6eb8369c8ec8179cb4
-rw-r--r-- | src/vnet/tcp/tcp_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 5172fcad4f4..61692fafe37 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -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); |