summaryrefslogtreecommitdiffstats
path: root/src/ogAdmServer.h
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-07-03 12:42:00 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-07-03 14:11:35 +0200
commit06af0c26f4c46088d8a6f97877f865527bcbc409 (patch)
treef4ba170d0be8a1192a4f23d8c85a5c103e1b2885 /src/ogAdmServer.h
parentd6789f1384eb515f7bbe0d25762ffb82567eec38 (diff)
#990 Use client broadcast address on WoL
Some universities have computers in a different subnet where the ogServer is, but ogServer WoL functionality only supported to send packet to its own subnets. This commit solves this. Now ogServer sends two WoL packets per client, one with the broadcast address of the interface indicated in the config file, the other with the broadcast address calculated with the address and netmask of the client. To ensure that the second WoL works correctly you must configure correctly the IP and netmask of the clients. Also, you have to configure the network of your organization to route WoL packet to the correct subnet.
Diffstat (limited to 'src/ogAdmServer.h')
-rw-r--r--src/ogAdmServer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogAdmServer.h b/src/ogAdmServer.h
index c5b5e26..7e5fcd3 100644
--- a/src/ogAdmServer.h
+++ b/src/ogAdmServer.h
@@ -45,8 +45,8 @@ struct og_dbi;
bool clienteExistente(char *,int *);
bool clienteDisponible(char *,int *);
bool actualizaConfiguracion(struct og_dbi *,char* ,int);
-bool Levanta(char**, char**, int, char*);
-bool WakeUp(int,char*,char*,char*);
+bool Levanta(char**, char**, char**, int, char*);
+bool WakeUp(int,char*,char*,char*,char*);
bool actualizaCreacionImagen(struct og_dbi *,char*,char*,char*,char*,char*,char*);
bool actualizaRestauracionImagen(struct og_dbi *,char*,char*,char*,char*,char*);
bool actualizaHardware(struct og_dbi *dbi, char* ,char*,char*,char*);