This new function mirrors the str2mask() function for IPv4 addresses. This commit is in preparation to support ARGT_MSK6.