From 06af0c26f4c46088d8a6f97877f865527bcbc409 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 3 Jul 2020 12:42:00 +0200 Subject: #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. --- src/ogAdmServer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ogAdmServer.h') 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*); -- cgit v1.2.3-18-g5258