Searched refs:nif (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 83 for (NetworkInterface nif : Collections.list(NetworkInterface.getNetworkInterfaces())) { in testInterfaceProperties() 84 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 86 if (nif.isUp() == false) { in testInterfaceProperties() 90 if (isEthernet(nif.getName())) { in testInterfaceProperties() 91 assertEquals(6, nif.getHardwareAddress().length); in testInterfaceProperties() 92 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties() 112 for (NetworkInterface nif : Collections.list(NetworkInterface.getNetworkInterfaces())) { in testDumpAll() 113 System.err.println(nif); in testDumpAll() 114 System.err.println(nif.getInterfaceAddresses()); in testDumpAll() 115 String flags = nif.isUp() ? "UP" : "DOWN"; in testDumpAll() [all …]
|
D | InetAddressTest.java | 174 for (NetworkInterface nif in test_isReachable() 176 deserialized.isReachable(nif, 20, 500); in test_isReachable()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Inet6Address.java | 242 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException { in Inet6Address() argument 243 initif (hostName, addr, nif); in Inet6Address() 269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) in getByAddress() argument 278 return new Inet6Address(host, addr, nif); in getByAddress() 317 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() local 318 if (nif == null) { in initstr() 321 initif (hostName, addr, nif); in initstr() 327 …private void initif(String hostName, byte addr[],NetworkInterface nif) throws UnknownHostException… in initif() argument 333 if (nif != null) { in initif() 334 this.scope_ifname = nif; in initif() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 353 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII() local 355 while (nif.hasMoreElements()) { in test_isReachableLjava_net_NetworkInterfaceII() 356 netif = nif.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII()
|
D | Inet6AddressTest.java | 754 NetworkInterface nif = null; in test_getByAddressLString$BLNetworkInterface() local 756 Inet6Address.getByAddress("123", null, nif); in test_getByAddressLString$BLNetworkInterface() 763 Inet6Address.getByAddress("123", addr1, nif); in test_getByAddressLString$BLNetworkInterface() 773 Inet6Address.getByAddress("123", addr2, nif); in test_getByAddressLString$BLNetworkInterface()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 87 NetworkInterface nif = NetworkInterface.getByInetAddress(address); in bind() local 88 if (nif == null) { in bind() 92 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind()
|