Also take netmask into account