summaryrefslogtreecommitdiffstats
path: root/sources
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
commit881f532ee1c46b930af86976ea7f177c31482154 (patch)
tree6cab298d13832a51f78d578107262d96c0fa51a9 /sources
parente80c85fbff66f7fc2995d10186a4513c7cec76bf (diff)
#915 add OG_CLIENTS_MAX definition
This definition specifies the maximum number of clients, that is set up to 4096.
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 0d2bc66..2168a5c 100644
--- a/sources/ogAdmServer.cpp
+++ b/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];