Home
last modified time | relevance | path

Searched refs:ifa (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java404 for (StructIfaddrs ifa : ifaddrs) { in getAll()
405 String name = ifa.ifa_name; in getAll()
413 ifas.add(ifa); in getAll()
432 for (StructIfaddrs ifa : e.getValue()) { in getAll()
433 if (ifa.ifa_addr != null) { in getAll()
434 addrs.add(ifa.ifa_addr); in getAll()
435 binds.add(new InterfaceAddress(ifa.ifa_addr, (Inet4Address) ifa.ifa_broadaddr, in getAll()
436 ifa.ifa_netmask)); in getAll()
439 if (ifa.hwaddr != null) { in getAll()
440 ni.hardwareAddr = ifa.hwaddr; in getAll()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1619 for (ifaddrs* ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { in Linux_getifaddrs() local
1631 for (ifaddrs* ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next, ++index) { in Linux_getifaddrs() local
1632 TO_JAVA_STRING(name, ifa->ifa_name); in Linux_getifaddrs()
1633 jint flags = ifa->ifa_flags; in Linux_getifaddrs()
1635 reinterpret_cast<sockaddr_storage*>(ifa->ifa_addr); in Linux_getifaddrs()
1637 reinterpret_cast<sockaddr_storage*>(ifa->ifa_netmask); in Linux_getifaddrs()
1639 reinterpret_cast<sockaddr_storage*>(ifa->ifa_broadaddr); in Linux_getifaddrs()
1655 if (broadAddr != NULL && (ifa->ifa_flags & IFF_BROADCAST)) { in Linux_getifaddrs()
1665 sockaddr_ll* sll = reinterpret_cast<sockaddr_ll*>(ifa->ifa_addr); in Linux_getifaddrs()