Home
last modified time | relevance | path

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

/bionic/tests/
Difaddrs_test.cpp40 TEST(ifaddrs, freeifaddrs_null) { in TEST() argument
46 TEST(ifaddrs, getifaddrs_lo) { in TEST() argument
47 ifaddrs* addrs = nullptr; in TEST()
52 ifaddrs* lo_inet4 = nullptr; in TEST()
53 ifaddrs* lo_inet6 = nullptr; in TEST()
54 ifaddrs* lo_packet = nullptr; in TEST()
55 for (ifaddrs* addr = addrs; addr != nullptr; addr = addr->ifa_next) { in TEST()
82 TEST(ifaddrs, getifaddrs_interfaces) { in TEST() argument
85 ifaddrs* addrs; in TEST()
88 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* _Nullable ifa_next; argument
83 int getifaddrs(struct ifaddrs* _Nullable * _Nonnull __list_ptr) __INTRODUCED_IN(24);
91 void freeifaddrs(struct ifaddrs* _Nullable __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()
302 int getifaddrs(ifaddrs** out) { in getifaddrs()
335 void freeifaddrs(ifaddrs* list) { in freeifaddrs()
337 ifaddrs* current = list; in freeifaddrs()
/bionic/docs/
Dstatus.md203 * <ifaddrs.h> `getifaddrs`/`freeifaddrs`/`if_freenameindex`/`if_nameindex`
/bionic/libc/
DAndroid.bp859 "bionic/ifaddrs.cpp",