getting netmask