aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.h
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2023-10-03 13:54:15 +0200
committerFlorin Coras <florin.coras@gmail.com>2023-10-03 16:28:36 +0000
commite111bbd121b7c2ca4e2a002fd8ed4ffcea5222ff (patch)
tree4c188b2b7a124d4fb92da4609cbd85e897977070 /src/vnet/session/session.h
parentbc37878ecbad0a3a24801f1ad5af04a209b4c201 (diff)
session: make port range configurable
Type: feature This patch makes the port range used by the transport layer configurable in the manner of sysctl's ip_local_port_range. Change-Id: Ie17f776538311b29d1dca64643a3a0bd74cb90a6 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r--src/vnet/session/session.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index 4de7bb252f0..ebaad5a93a7 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -267,6 +267,10 @@ typedef struct session_main_
u32 local_endpoints_table_memory;
u32 local_endpoints_table_buckets;
+ /** Transport source port allocation range */
+ u16 port_allocator_min_src_port;
+ u16 port_allocator_max_src_port;
+
/** Preallocate session config parameter */
u32 preallocated_sessions;