Home
last modified time | relevance | path

Searched refs:ifaddrs (Results 1 – 6 of 6) sorted by relevance

/bionic/tests/
Difaddrs_test.cpp35 TEST(ifaddrs, freeifaddrs_null) { in TEST() argument
41 TEST(ifaddrs, getifaddrs_lo) { in TEST() argument
42 ifaddrs* addrs = nullptr; in TEST()
47 ifaddrs* lo_inet4 = nullptr; in TEST()
48 ifaddrs* lo_inet6 = nullptr; in TEST()
49 ifaddrs* lo_packet = nullptr; in TEST()
50 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
77 TEST(ifaddrs, getifaddrs_interfaces) { in TEST() argument
80 ifaddrs* addrs; in TEST()
83 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
[all …]
Dnet_if_test.cpp59 ifaddrs* ifa; in TEST()
61 for (ifaddrs* it = ifa; it != nullptr; it = it->ifa_next) { in TEST()
/bionic/libc/include/
Difaddrs.h45 struct ifaddrs { struct
47 struct ifaddrs* ifa_next; argument
83 int getifaddrs(struct ifaddrs** __list_ptr) __INTRODUCED_IN(24);
91 void freeifaddrs(struct ifaddrs* __ptr) __INTRODUCED_IN(24);
/bionic/libc/bionic/
Difaddrs.cpp52 ifaddrs ifa;
64 explicit ifaddrs_storage(ifaddrs** list) { in ifaddrs_storage()
69 *list = reinterpret_cast<ifaddrs*>(this); in ifaddrs_storage()
163 ifaddrs** out = reinterpret_cast<ifaddrs**>(context); in __getifaddrs_callback()
251 static void resolve_or_remove_nameless_interfaces(ifaddrs** list) { in resolve_or_remove_nameless_interfaces()
255 ifaddrs* next_addr = addr->ifa.ifa_next; in resolve_or_remove_nameless_interfaces()
280 static void get_interface_flags_via_ioctl(ifaddrs** list) { in get_interface_flags_via_ioctl()
303 int getifaddrs(ifaddrs** out) { in getifaddrs()
339 void freeifaddrs(ifaddrs* list) { in freeifaddrs()
341 ifaddrs* current = list; in freeifaddrs()
/bionic/docs/
Dstatus.md146 * <ifaddrs.h> `getifaddrs`/`freeifaddrs`/`if_freenameindex`/`if_nameindex`
/bionic/libc/
DAndroid.bp1062 "bionic/ifaddrs.cpp",