Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4c7305f
)
session: fix port alloc for fixed lcl port reuse
92/40492/2
author
Florin Coras
<fcoras@cisco.com>
Sat, 9 Mar 2024 03:25:42 +0000
(19:25 -0800)
committer
Florin Coras
<florin.coras@gmail.com>
Sat, 9 Mar 2024 04:29:33 +0000
(
04:29
+0000)
Type: fix
Change-Id: If30d1aa8aa752ae4bddde776832a3009ebc7e316
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/transport.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/transport.c
b/src/vnet/session/transport.c
index
0012ba2
..
e6eb9d7
100644
(file)
--- a/
src/vnet/session/transport.c
+++ b/
src/vnet/session/transport.c
@@
-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 */