Routine for network conversion from CIDR to IP and viceversa

Signed-off-by: Simone Cianni <simocn77@gmail.com>