Searched refs:nif (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 85 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testInterfaceProperties() 86 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 88 if (nif.isUp() == false) { in testInterfaceProperties() 92 if (isEthernet(nif.getName())) { in testInterfaceProperties() 93 assertEquals(6, nif.getHardwareAddress().length); in testInterfaceProperties() 94 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties() 114 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testDumpAll() 115 System.err.println(nif); in testDumpAll() 116 System.err.println(nif.getInterfaceAddresses()); in testDumpAll() 117 String flags = nif.isUp() ? "UP" : "DOWN"; in testDumpAll() [all …]
|
D | InetAddressTest.java | 239 for (NetworkInterface nif in test_isReachable() 241 deserialized.isReachable(nif, 20, 500); in test_isReachable()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Inet6Address.java | 252 void init(byte addr[], NetworkInterface nif) in init() argument 257 if (nif != null) { in init() 258 this.scope_id = deriveNumericScope(ipaddress, nif); in init() 260 this.scope_ifname = nif; in init() 402 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException { in Inet6Address() argument 404 initif (hostName, addr, nif); in Inet6Address() 433 NetworkInterface nif) in getByAddress() argument 443 return new Inet6Address(host, addr, nif); in getByAddress() 486 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() local 487 if (nif == null) { in initstr() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 88 NetworkInterface nif = NetworkInterface.getByInetAddress(address); in bind() local 89 if (nif == null) { in bind() 93 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind() 373 NetworkInterface nif = NetworkInterface.getByInetAddress((InetAddress) value); in setSocketOptionErrno() local 374 if (nif == null) { in setSocketOptionErrno() 379 Libcore.os.setsockoptIpMreqn(fd, IPPROTO_IP, IP_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno() 380 Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 337 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII() local 339 while (nif.hasMoreElements()) { in test_isReachableLjava_net_NetworkInterfaceII() 340 netif = nif.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII()
|
D | Inet6AddressTest.java | 711 NetworkInterface nif = null; in test_getByAddressLString$BLNetworkInterface() local 713 Inet6Address.getByAddress("123", null, nif); in test_getByAddressLString$BLNetworkInterface() 720 Inet6Address.getByAddress("123", addr1, nif); in test_getByAddressLString$BLNetworkInterface() 730 Inet6Address.getByAddress("123", addr2, nif); in test_getByAddressLString$BLNetworkInterface()
|