summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-06-12 11:47:37 -0700
committerDave Wallace <dwallacelf@gmail.com>2021-06-14 15:54:10 +0000
commita34aad732b7c2bedd8e336336d0c42add2c5a951 (patch)
tree50703a7f66a58e2d9d99ec1697aa12c4ace1175c /src/vnet
parent6b6f413b5c216b72585c12a60de82065a94204ec (diff)
tcp: fix proto in port reuse check
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I338e61654a62ed6308ecd8bb15e1a8b13cd859b9 (cherry picked from commit 41a6fbada173b2733ca3b43bf620d6a9634c50da)
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/tcp/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index acb3868f419..0ceac828d2d 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -803,13 +803,13 @@ tcp_session_open (transport_endpoint_cfg_t * rmt)
return rv;
if (session_lookup_connection (rmt->fib_index, &lcl_addr, &rmt->ip,
- lcl_port, rmt->port, TRANSPORT_PROTO_UDP,
+ lcl_port, rmt->port, TRANSPORT_PROTO_TCP,
rmt->is_ip4))
return SESSION_E_PORTINUSE;
/* 5-tuple is available so increase lcl endpoint refcount and proceed
* with connection allocation */
- transport_share_local_endpoint (TRANSPORT_PROTO_UDP, &lcl_addr,
+ transport_share_local_endpoint (TRANSPORT_PROTO_TCP, &lcl_addr,
lcl_port);
}