Files
ports/security/softether/files/patch-increase-nat-sessions
Koichiro Iwao 8bff1591cf security/softether{,-devel}: clarify license of patches
as per request from a user.

While here, minor fixes in comment.
2025-08-18 09:58:21 +09:00

14 lines
960 B
Plaintext

# Copyright (c) 2019, Koichiro Iwao <meta@FreeBSD.org> (https://github.com/metalefty)
# SPDX-License-Identifier: Apache-2.0
--- src/Cedar/Cedar.h.orig2 2020-07-25 22:58:57.344813000 +0900
+++ src/Cedar/Cedar.h 2020-07-25 23:00:25.740997000 +0900
@@ -208,7 +208,7 @@
#define SERVER_MAX_SESSIONS 4096 // Maximum number of sessions that the server supports
#define SERVER_MAX_SESSIONS_FOR_CARRIER_EDITION 100000 // Maximum number of sessions that the server supports (Carrier Edition)
-#define NAT_MAX_SESSIONS 4096 // Maximum number of sessions that are supported by NAT
+#define NAT_MAX_SESSIONS 20000 // Maximum number of sessions that are supported by NAT
#define NAT_MAX_SESSIONS_KERNEL 65536 // Maximum number of sessions that are supported by NAT (In the case of kernel-mode NAT)
#define MAX_HUBS 4096 // The maximum number of virtual HUB
#define MAX_HUBS_FOR_CARRIER_EDITION 100000 // The maximum number of virtual HUB (Carrier Edition)