diff options
author | 2024-02-02 18:25:04 -0800 | |
---|---|---|
committer | 2025-01-24 18:55:19 +0000 | |
commit | f79c4be5536b1d5428cd9bd38becdf7391c1e80e (patch) | |
tree | b53783c2ffefd4f7645b131138191a7bcc269a16 /src/vnet/tcp | |
parent | 83635cf6e95539d4149574fac4d077f96183c317 (diff) |
session: make local port allocator fib aware
Allocate ports per fib.
Type: improvement
Change-Id: I9e1f113602485bfb09f71092eee58b9a433daa6a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp')
-rw-r--r-- | src/vnet/tcp/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index aea49558882..8851fb9c77e 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -242,8 +242,8 @@ tcp_connection_cleanup (tcp_connection_t * tc) /* Cleanup local endpoint if this was an active connect */ if (!(tc->cfg_flags & TCP_CFG_F_NO_ENDPOINT)) - transport_release_local_endpoint (TRANSPORT_PROTO_TCP, &tc->c_lcl_ip, - tc->c_lcl_port); + transport_release_local_endpoint (TRANSPORT_PROTO_TCP, tc->c_fib_index, + &tc->c_lcl_ip, tc->c_lcl_port); /* Check if connection is not yet fully established */ if (tc->state == TCP_STATE_SYN_SENT) |