Bug 976959 - Change the netmask to prefix length for supporting IPv6. r=vchang,hsinyi