Searched defs:ifa (Results 1 - 2 of 2) sorted by relevance

/bionic/tests/
H A Dnet_if_test.cpp59 ifaddrs* ifa; local
60 ASSERT_EQ(0, getifaddrs(&ifa));
61 for (ifaddrs* it = ifa; it != nullptr; it = it->ifa_next) {
64 freeifaddrs(ifa);
/bionic/libc/bionic/
H A Difaddrs.cpp50 ifaddrs ifa; member in struct:ifaddrs_storage
56 // Storage for the pointers in `ifa`.
66 ifa.ifa_next = *list;
73 if (ifa.ifa_addr == nullptr) {
76 ifa.ifa_addr = CopyAddress(family, data, byteCount, &addr);
79 ifa.ifa_dstaddr = CopyAddress(family, data, byteCount, &ifa_ifu);
90 ifa.ifa_broadaddr = CopyAddress(family, data, byteCount, &ifa_ifu);
99 if (ifa.ifa_addr != nullptr) {
100 ifa.ifa_dstaddr = reinterpret_cast<sockaddr*>(memcpy(&ifa_ifu, &addr, sizeof(addr)));
103 ifa
[all...]

Completed in 64 milliseconds