NetmaskToPrefixLength 1467 chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc int prefixlen = network_util::NetmaskToPrefixLength(netmask); NetmaskToPrefixLength 74 chromeos/network/network_util.h CHROMEOS_EXPORT int32 NetmaskToPrefixLength(const std::string& netmask); NetmaskToPrefixLength 11 chromeos/network/network_util_unittest.cc using chromeos::network_util::NetmaskToPrefixLength; NetmaskToPrefixLength 17 chromeos/network/network_util_unittest.cc TEST_F(NetworkUtilTest, NetmaskToPrefixLength) { NetmaskToPrefixLength 19 chromeos/network/network_util_unittest.cc EXPECT_EQ(32, NetmaskToPrefixLength("255.255.255.255")); NetmaskToPrefixLength 20 chromeos/network/network_util_unittest.cc EXPECT_EQ(31, NetmaskToPrefixLength("255.255.255.254")); NetmaskToPrefixLength 21 chromeos/network/network_util_unittest.cc EXPECT_EQ(30, NetmaskToPrefixLength("255.255.255.252")); NetmaskToPrefixLength 22 chromeos/network/network_util_unittest.cc EXPECT_EQ(29, NetmaskToPrefixLength("255.255.255.248")); NetmaskToPrefixLength 23 chromeos/network/network_util_unittest.cc EXPECT_EQ(28, NetmaskToPrefixLength("255.255.255.240")); NetmaskToPrefixLength 24 chromeos/network/network_util_unittest.cc EXPECT_EQ(27, NetmaskToPrefixLength("255.255.255.224")); NetmaskToPrefixLength 25 chromeos/network/network_util_unittest.cc EXPECT_EQ(26, NetmaskToPrefixLength("255.255.255.192")); NetmaskToPrefixLength 26 chromeos/network/network_util_unittest.cc EXPECT_EQ(25, NetmaskToPrefixLength("255.255.255.128")); NetmaskToPrefixLength 27 chromeos/network/network_util_unittest.cc EXPECT_EQ(24, NetmaskToPrefixLength("255.255.255.0")); NetmaskToPrefixLength 28 chromeos/network/network_util_unittest.cc EXPECT_EQ(23, NetmaskToPrefixLength("255.255.254.0")); NetmaskToPrefixLength 29 chromeos/network/network_util_unittest.cc EXPECT_EQ(22, NetmaskToPrefixLength("255.255.252.0")); NetmaskToPrefixLength 30 chromeos/network/network_util_unittest.cc EXPECT_EQ(21, NetmaskToPrefixLength("255.255.248.0")); NetmaskToPrefixLength 31 chromeos/network/network_util_unittest.cc EXPECT_EQ(20, NetmaskToPrefixLength("255.255.240.0")); NetmaskToPrefixLength 32 chromeos/network/network_util_unittest.cc EXPECT_EQ(19, NetmaskToPrefixLength("255.255.224.0")); NetmaskToPrefixLength 33 chromeos/network/network_util_unittest.cc EXPECT_EQ(18, NetmaskToPrefixLength("255.255.192.0")); NetmaskToPrefixLength 34 chromeos/network/network_util_unittest.cc EXPECT_EQ(17, NetmaskToPrefixLength("255.255.128.0")); NetmaskToPrefixLength 35 chromeos/network/network_util_unittest.cc EXPECT_EQ(16, NetmaskToPrefixLength("255.255.0.0")); NetmaskToPrefixLength 36 chromeos/network/network_util_unittest.cc EXPECT_EQ(15, NetmaskToPrefixLength("255.254.0.0")); NetmaskToPrefixLength 37 chromeos/network/network_util_unittest.cc EXPECT_EQ(14, NetmaskToPrefixLength("255.252.0.0")); NetmaskToPrefixLength 38 chromeos/network/network_util_unittest.cc EXPECT_EQ(13, NetmaskToPrefixLength("255.248.0.0")); NetmaskToPrefixLength 39 chromeos/network/network_util_unittest.cc EXPECT_EQ(12, NetmaskToPrefixLength("255.240.0.0")); NetmaskToPrefixLength 40 chromeos/network/network_util_unittest.cc EXPECT_EQ(11, NetmaskToPrefixLength("255.224.0.0")); NetmaskToPrefixLength 41 chromeos/network/network_util_unittest.cc EXPECT_EQ(10, NetmaskToPrefixLength("255.192.0.0")); NetmaskToPrefixLength 42 chromeos/network/network_util_unittest.cc EXPECT_EQ(9, NetmaskToPrefixLength("255.128.0.0")); NetmaskToPrefixLength 43 chromeos/network/network_util_unittest.cc EXPECT_EQ(8, NetmaskToPrefixLength("255.0.0.0")); NetmaskToPrefixLength 44 chromeos/network/network_util_unittest.cc EXPECT_EQ(7, NetmaskToPrefixLength("254.0.0.0")); NetmaskToPrefixLength 45 chromeos/network/network_util_unittest.cc EXPECT_EQ(6, NetmaskToPrefixLength("252.0.0.0")); NetmaskToPrefixLength 46 chromeos/network/network_util_unittest.cc EXPECT_EQ(5, NetmaskToPrefixLength("248.0.0.0")); NetmaskToPrefixLength 47 chromeos/network/network_util_unittest.cc EXPECT_EQ(4, NetmaskToPrefixLength("240.0.0.0")); NetmaskToPrefixLength 48 chromeos/network/network_util_unittest.cc EXPECT_EQ(3, NetmaskToPrefixLength("224.0.0.0")); NetmaskToPrefixLength 49 chromeos/network/network_util_unittest.cc EXPECT_EQ(2, NetmaskToPrefixLength("192.0.0.0")); NetmaskToPrefixLength 50 chromeos/network/network_util_unittest.cc EXPECT_EQ(1, NetmaskToPrefixLength("128.0.0.0")); NetmaskToPrefixLength 51 chromeos/network/network_util_unittest.cc EXPECT_EQ(0, NetmaskToPrefixLength("0.0.0.0")); NetmaskToPrefixLength 53 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255")); NetmaskToPrefixLength 54 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255.255.255")); NetmaskToPrefixLength 55 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255.255.0")); NetmaskToPrefixLength 56 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255.256")); NetmaskToPrefixLength 57 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255.1")); NetmaskToPrefixLength 58 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.240.255")); NetmaskToPrefixLength 59 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.0.0.255")); NetmaskToPrefixLength 60 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255.255.255.FF")); NetmaskToPrefixLength 61 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255,255,255,255")); NetmaskToPrefixLength 62 chromeos/network/network_util_unittest.cc EXPECT_EQ(-1, NetmaskToPrefixLength("255 255 255 255"));