Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/net/
DNetworkInterface.java104 public static NetworkInterface getByName(String interfaceName) throws SocketException { in getByName() argument
105 if (interfaceName == null) { in getByName()
108 if (!isValidInterfaceName(interfaceName)) { in getByName()
112 return getByNameInternal(interfaceName, readIfInet6Lines()); in getByName()
119 private static NetworkInterface getByNameInternal(String interfaceName, in getByNameInternal() argument
121 int interfaceIndex = readIntFile("/sys/class/net/" + interfaceName + "/ifindex"); in getByNameInternal()
125 collectIpv6Addresses(interfaceName, interfaceIndex, addresses, interfaceAddresses, in getByNameInternal()
127 collectIpv4Address(interfaceName, addresses, interfaceAddresses); in getByNameInternal()
129 return new NetworkInterface(interfaceName, interfaceIndex, addresses, interfaceAddresses); in getByNameInternal()
145 public static void collectIpv6Addresses(String interfaceName, int interfaceIndex, in collectIpv6Addresses() argument
[all …]
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java98 …eDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(… in ioctlInetAddress() argument
DOs.java90 …public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws Errno… in ioctlInetAddress() argument
DPosix.java92 …public native InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throw… in ioctlInetAddress() argument
/libcore/luni/src/main/java/android/system/
DOs.java219 …criptor fd, int cmd, String interfaceName) throws ErrnoException { return Libcore.os.ioctlInetAddr… in ioctlInetAddress() argument
/libcore/luni/src/main/native/
Dlibcore_io_Posix.cpp362 ScopedUtfChars interfaceName(env, javaInterfaceName); in fillIfreq() local
363 if (interfaceName.c_str() == NULL) { in fillIfreq()
367 strncpy(req.ifr_name, interfaceName.c_str(), sizeof(req.ifr_name)); in fillIfreq()