Home
last modified time | relevance | path

Searched refs:addr4 (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/net/
Dip_address_unittest.cc137 IPAddress addr4(IPAddress::kFamilyIPv4); in TEST_F() local
138 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()
/system/core/libsysutils/src/
DNetlinkEvent.cpp188 struct in_addr *addr4 = (struct in_addr *) RTA_DATA(rta); in parseIfAddrMessage() local
189 if (RTA_PAYLOAD(rta) < sizeof(*addr4)) { in parseIfAddrMessage()
194 inet_ntop(AF_INET, addr4, addrstr, sizeof(addrstr)); in parseIfAddrMessage()
/system/netd/tests/
Dbinder_test.cpp530 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()