Properly assign netmask variable