Support netmask for IPv6 functions, too