tcp: fix port reuse with multiple listeners 54/30554/8
authorFlorin Coras <fcoras@cisco.com>
Tue, 29 Dec 2020 17:42:58 +0000 (09:42 -0800)
committerDave Barach <openvpp@barachs.net>
Fri, 5 Feb 2021 20:50:11 +0000 (20:50 +0000)
commitee1cb469b2ddc4e9cb611413ff9e7c2c29e6a064
tree62f59e64edc5f1d500f5961194dffe195318b50d
parentffc6bdcd38b8209050671d3d86f943c37887a7b7
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
src/vnet/tcp/tcp_inlines.h
src/vnet/tcp/tcp_input.c