Network mask translation script.