diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 4ce47bac09..a7d94d43bc 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -4092,6 +4092,18 @@ function mask2cidr($mask) } +/** + * convert the cidr prefix to subnet mask + * + * @param int cidr prefix + * @return string subnet mask + */ +function cidr2mask($int) +{ + return long2ip(-1 << (32 - (int) $int)); +} + + function get_help_info($section_name) { global $config; diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php index 24aa44e098..b7e0758596 100755 --- a/pandora_console/operation/agentes/estado_generalagente.php +++ b/pandora_console/operation/agentes/estado_generalagente.php @@ -825,7 +825,15 @@ $table_events = '