diff options
author | Florin Coras <fcoras@cisco.com> | 2020-12-29 09:42:58 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-02-05 20:50:11 +0000 |
commit | ee1cb469b2ddc4e9cb611413ff9e7c2c29e6a064 (patch) | |
tree | 62f59e64edc5f1d500f5961194dffe195318b50d /src/vnet/tcp/tcp_inlines.h | |
parent | ffc6bdcd38b8209050671d3d86f943c37887a7b7 (diff) |
tcp: fix port reuse with multiple listeners
The check in listen state that the listener is not valid is not enough
if the time wait session's index overlaps an actual listener's index.
Thanks wanghanlin@corp.netease.com for the report!
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3dff0cb134940a8265ff908faa607c67dba5e56b
Diffstat (limited to 'src/vnet/tcp/tcp_inlines.h')
-rw-r--r-- | src/vnet/tcp/tcp_inlines.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_inlines.h b/src/vnet/tcp/tcp_inlines.h index 25bf7387c69..45762671da8 100644 --- a/src/vnet/tcp/tcp_inlines.h +++ b/src/vnet/tcp/tcp_inlines.h @@ -310,7 +310,6 @@ tcp_input_lookup_buffer (vlib_buffer_t * b, u8 thread_index, u32 * error, vnet_buffer (b)->tcp.data_len = n_data_bytes; vnet_buffer (b)->tcp.seq_end = vnet_buffer (b)->tcp.seq_number + n_data_bytes; - vnet_buffer (b)->tcp.flags = 0; *error = result ? TCP_ERROR_NONE + result : *error; |