tcp: fix proto in port reuse check
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I338e61654a62ed6308ecd8bb15e1a8b13cd859b9
This commit is contained in:

committed by
Florin Coras

parent
6bd54caf46
commit
41a6fbada1
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user