Lines Matching refs:famHint
120 bool PrefixParser::add(vector<string> in, IP_FAM famHint) { in add() argument
125 if (!add(in[i], famHint)) in add()
131 bool PrefixParser::add(string in, IP_FAM famHint) { in add() argument
137 if (famHint == IP_FAM::INVALID) in add()
138 famHint = guessIPFamily(in); in add()
148 int mask = parseSubnetMask(subnet, famHint); in add()
149 if (!isMaskValid(mask, famHint)) { in add()
154 Prefix pre = makeBlankPrefix(famHint); in add()
156 if (famHint == IP_FAM::V4) { in add()
166 if (famHint == IP_FAM::V4 && !populateV4Mask(mask, pre)) { in add()
246 int PrefixParser::parseSubnetMask(string in, IP_FAM famHint) { in parseSubnetMask() argument
249 return (famHint == IP_FAM::V6) ? 128 : 32; in parseSubnetMask()
346 Prefix PrefixParser::makeBlankPrefix(IP_FAM famHint) { in makeBlankPrefix() argument
349 ret.fam = famHint; in makeBlankPrefix()