session: fix port alloc for fixed lcl port reuse
Type: fix Change-Id: If30d1aa8aa752ae4bddde776832a3009ebc7e316 Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
Florin Coras
committed by
Florin Coras
parent
4c7305f124
commit
91bfe5b658
@ -740,8 +740,9 @@ transport_alloc_local_endpoint (u8 proto, transport_endpoint_cfg_t * rmt_cfg,
|
||||
return 0;
|
||||
|
||||
/* IP:port pair already in use, check if 6-tuple available */
|
||||
if (session_lookup_connection (rmt->fib_index, lcl_addr, &rmt->ip, port,
|
||||
rmt->port, proto, rmt->is_ip4))
|
||||
if (session_lookup_connection (rmt->fib_index, lcl_addr, &rmt->ip,
|
||||
rmt_cfg->peer.port, rmt->port, proto,
|
||||
rmt->is_ip4))
|
||||
return SESSION_E_PORTINUSE;
|
||||
|
||||
/* 6-tuple is available so increment lcl endpoint refcount */
|
||||
|
Reference in New Issue
Block a user