* gestor_Comando.php only execute wakeonlan_repo.php when wake up command is called.
* wakeonlan_repo.php send new needed parameters for ogAdmServer WoL.
* repository.php use ogAdmServer WoL instead of wakeonlan perl script.
* opengnsys_installer.sh and opengnsys_update.sh don't have wakeonlan perl script dependency anymore.
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date: Mon Jan 28 10:22:57 2019 +0100
#
# On branch devel
# Your branch is ahead of 'origin/devel' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# modified: admin/WebConsole/comandos/gestores/gestor_Comandos.php
# modified: admin/WebConsole/comandos/gestores/wakeonlan_repo.php
# modified: admin/WebConsole/rest/repository.php
# modified: installer/opengnsys_installer.sh
# modified: installer/opengnsys_update.sh
#
# Untracked files:
# 0001-892-Use-ogAdmServer-Wake-on-Lan.patch
# 0001-892-Use-ogAdmServer-Wake-on-Lan.zip
#
Fix function to send wake-on-lan packet:
- setsockopt() expects an integer as parameter.
- zero the struct socketaddr_in local structure.
- use sscanf() to parse the mac address string.
Before:
Dec 3 11:18:12 ogLab /opt/opengnsys/sbin/ogAdmServer[1025]: server closing connection to 192.168.56.10:50476
After this patch:
Dec 3 11:18:12 ogLab ogAdmServer[1025]: server closing connection to 192.168.56.10:50476
OgAdmServer leaves a connection in keepalive more (similar to HTTP
keepalive feature), the existing handling is not correct. The tbsocket
table is never cleaned up and properly.
Use the new og_client object that represents connections from the
clients in tbsocket[] instead.
The keepalive field now stores the index in the tbsocket table, so there
is no need to consult mysql to fetch the slot that this client is using.
This patch also extends syslog() support to include port number when
reporting connections from clients.
Modern server side using libev library, includes timeouts for clients.
After this patch, your system requires the libev-dev and libev4 packages
to compile ogAdmServer.
These functions are not used, remove them.
sources/ogAdmServer.cpp:2208:13: warning: ‘bool actualizaCreacionSoftIncremental(Database, Table, char*, char*)’ defined but not used [-Wunused-function]
static bool actualizaCreacionSoftIncremental(Database db, Table tbl, char* idi,char* idf)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1626:13: warning: ‘bool RESPUESTA_Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
static bool RESPUESTA_Comando(int socket_c, TRAMA* ptrTrama)
^~~~~~~~~~~~~~~~~
sources/ogAdmServer.cpp:1600:13: warning: ‘bool Comando(int, TRAMA*)’ defined but not used [-Wunused-function]
static bool Comando(int socket_c, TRAMA* ptrTrama)
^~~~~~~