Fix netmask depending on its formalization.