common: (networking) get the netmask without gateway

The gateway info removed because not needed anymore.