summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 16:13:05 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 17:15:49 +0200
commitc935fc90661df5d4fa9658d6d97c2f99a36c8704 (patch)
treed18e4c8a26d2f135a8f135bf2f8a07916a5e4857
parent611f470879633a3d02e185029cafc24b60bd803b (diff)
#915 add OG_CLIENTS_MAX definition
This definition specifies the maximum number of clients, that is set up to 4096.
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
index 0d2bc66a..2168a5c2 100644
--- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
+++ b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp
@@ -3349,9 +3349,11 @@ static int og_client_state_process_payload(struct og_client *cli)
return 1;
}
+#define OG_CLIENTS_MAX 4096
+
struct og_msg_params {
- const char *ips_array[4096];
- const char *mac_array[4096];
+ const char *ips_array[OG_CLIENTS_MAX];
+ const char *mac_array[OG_CLIENTS_MAX];
unsigned int ips_array_len;
const char *wol_type;
char run_cmd[4096];