diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 16:13:05 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 17:15:49 +0200 |
commit | 881f532ee1c46b930af86976ea7f177c31482154 (patch) | |
tree | 6cab298d13832a51f78d578107262d96c0fa51a9 | |
parent | e80c85fbff66f7fc2995d10186a4513c7cec76bf (diff) |
#915 add OG_CLIENTS_MAX definition
This definition specifies the maximum number of clients, that is set up
to 4096.
-rw-r--r-- | sources/ogAdmServer.cpp | 6 |
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]; |