Searched refs:addr4 (Results 1 – 3 of 3) sorted by relevance
137 IPAddress addr4(IPAddress::kFamilyIPv4); in TEST_F() local138 addr4.SetAddressToDefault(); in TEST_F()140 EXPECT_EQ(4, addr4.GetLength()); in TEST_F()141 EXPECT_EQ(IPAddress::kFamilyIPv4, addr4.family()); in TEST_F()142 EXPECT_TRUE(addr4.IsDefault()); in TEST_F()143 EXPECT_TRUE(addr4.address().IsZero()); in TEST_F()144 EXPECT_TRUE(addr4.address().Equals(ByteString(4))); in TEST_F()156 EXPECT_FALSE(addr4.Equals(addr6)); in TEST_F()
188 struct in_addr *addr4 = (struct in_addr *) RTA_DATA(rta); in parseIfAddrMessage() local189 if (RTA_PAYLOAD(rta) < sizeof(*addr4)) { in parseIfAddrMessage()194 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
530 auto *addr4 = reinterpret_cast<const struct sockaddr_in*>(addr->ifa_addr); in interfaceHasAddress()532 if (memcmp(&addr4->sin_addr, &want->sin_addr, sizeof(want->sin_addr)) != 0) { in interfaceHasAddress()