Merge branch 'ent-4403-8401-acanovas-ipam-creacion-de-superredes' into 'develop'

added function to convert cidr prefixes to mask

See merge request 
This commit is contained in:
Daniel Rodriguez 2019-11-07 11:47:24 +01:00
commit a550f2d9d3

@ -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;