• Home
  • Raw
  • Download

Lines Matching refs:prefixLength

756     int prefixLength = 0;  in netmaskToPrefixLength()  local
767 prefixLength += (value == 0) ? 0 : CHAR_BIT - ffs(value) + 1; in netmaskToPrefixLength()
775 return prefixLength; in netmaskToPrefixLength()
785 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument
821 if (prefixLength < 0) return true; // not checking prefix lengths in interfaceHasAddress()
825 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress()
826 return (prefixLength == netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress()
835 if (prefixLength < 0) return true; // not checking prefix lengths in interfaceHasAddress()
839 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress()
840 return (prefixLength == netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress()
857 const int prefixLength; in TEST_F() member
877 sTun.name(), td.addrString, td.prefixLength); in TEST_F()
887 EXPECT_TRUE(interfaceHasAddress(sTun.name(), td.addrString, td.prefixLength)); in TEST_F()
893 status = mNetd->interfaceDelAddress(sTun.name(), td.addrString, td.prefixLength); in TEST_F()
2445 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local
2448 prefixLength++; in ipv4NetmaskToPrefixLength()
2451 return prefixLength; in ipv4NetmaskToPrefixLength()
2483 int prefixLength = 0; in getInterfaceIPv4Prefix() local
2485 prefixLength = ipv4NetmaskToPrefixLength( in getInterfaceIPv4Prefix()
2489 return prefixLength; in getInterfaceIPv4Prefix()
2559 EXPECT_EQ(getInterfaceIPv4Prefix(ifName), interfaceCfg.prefixLength); in expectCurrentInterfaceConfigurationEquals()
2566 EXPECT_EQ(getInterfaceIPv4Prefix(setCfg.ifName), setCfg.prefixLength); in expectCurrentInterfaceConfigurationAlmostEqual()
2597 const std::string& addr, int prefixLength, in makeInterfaceCfgParcel() argument
2603 cfg.prefixLength = prefixLength; in makeInterfaceCfgParcel()