Home
last modified time | relevance | path

Searched refs:NetworkInterface (Results 1 – 25 of 48) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DNetworkInterfaceTest.java22 import java.net.NetworkInterface;
31 Enumeration<NetworkInterface> theInterfaces = null;
37 private NetworkInterface networkInterface1 = null;
39 private NetworkInterface sameAsNetworkInterface1 = null;
41 private NetworkInterface networkInterface2 = null;
161 NetworkInterface in test_getInetAddresses()
171 NetworkInterface in test_getInetAddresses()
203 NetworkInterface.getByName(null)); in test_getByNameLjava_lang_String()
209 NetworkInterface.getByName("8not a name4")); in test_getByNameLjava_lang_String()
218 networkInterface1, NetworkInterface.getByName(theName)); in test_getByNameLjava_lang_String()
[all …]
DInterfaceAddressTest.java24 import java.net.NetworkInterface;
126 Enumeration<NetworkInterface> netifs = NetworkInterface in setUp()
128 NetworkInterface theInterface = null; in setUp()
149 NetworkInterface anotherNetworkInter = NetworkInterface in setUp()
DMulticastSocketTest.java35 import java.net.NetworkInterface;
72 private NetworkInterface loopbackInterface;
73 private NetworkInterface ipv4NetworkInterface;
74 private NetworkInterface ipv6NetworkInterface;
81 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); in setUp()
86 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in setUp()
97 NetworkInterface nextInterface = interfaces.nextElement(); in setUp()
160 ipv4NetworkInterface, NetworkInterface.getByInetAddress(mss.getInterface())); in getInterface()
171 NetworkInterface theInterface = mss.getNetworkInterface(); in getNetworkInterface()
327 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
[all …]
DInetAddressTest.java25 import java.net.NetworkInterface;
337 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII()
338 NetworkInterface netif; in test_isReachableLjava_net_NetworkInterfaceII()
367 NetworkInterface loopbackInterface = null; in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
369 Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
372 NetworkInterface networkInterface = networkInterfaces.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
DDatagramSocketImplTest.java25 import java.net.NetworkInterface;
129 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) in joinGroup()
140 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface) in leaveGroup()
/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java70 public final class NetworkInterface { class
96 private List<NetworkInterface> childs;
97 private NetworkInterface parent = null;
99 private static final NetworkInterface defaultInterface;
132 NetworkInterface() { in NetworkInterface() method in NetworkInterface
135 NetworkInterface(String name, int index, InetAddress[] addrs) { in NetworkInterface() method in NetworkInterface
251 public Enumeration<NetworkInterface> getSubInterfaces() { in getSubInterfaces()
264 public NetworkInterface getParent() { in getParent()
314 public static NetworkInterface getByName(String name) throws SocketException { in getByName()
319 NetworkInterface[] nis = getAll(); in getByName()
[all …]
DInet6Address.java215 NetworkInterface ifname, boolean scope_ifname_set) in Inet6AddressHolder()
246 NetworkInterface scope_ifname; // null
270 void init(byte addr[], NetworkInterface nif) in init()
429 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address()
464 NetworkInterface nif) in getByAddress()
517 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr()
527 private void initif(String hostName, byte addr[], NetworkInterface nif) in initif()
559 …private static int deriveNumericScope (byte[] thisAddr, NetworkInterface ifc) throws UnknownHostEx… in deriveNumericScope()
579 Enumeration<NetworkInterface> en; in deriveNumericScope()
581 en = NetworkInterface.getNetworkInterfaces(); in deriveNumericScope()
[all …]
DMulticastSocket.java324 NetworkInterface defaultInterface = NetworkInterface.getDefault(); in joinGroup()
393 public void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) in joinGroup()
440 public void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) in leaveGroup()
527 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface()
558 public void setNetworkInterface(NetworkInterface netIf) in setNetworkInterface()
578 public NetworkInterface getNetworkInterface() throws SocketException { in getNetworkInterface()
585 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface()
587 return NetworkInterface.getByIndex(niIndex); in getNetworkInterface()
DAbstractPlainDatagramSocketImpl.java219 protected void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) in joinGroup()
226 protected abstract void join(InetAddress inetaddr, NetworkInterface netIf) in join()
237 protected void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) in leaveGroup()
244 protected abstract void leave(InetAddress inetaddr, NetworkInterface netIf) in leave()
330 if (o == null || !(o instanceof Integer || o instanceof NetworkInterface)) in setOption()
332 if (o instanceof NetworkInterface) { in setOption()
333 o = new Integer(((NetworkInterface)o).getIndex()); in setOption()
402 NetworkInterface networkInterface = NetworkInterface.getByIndex(niIndex); in getNIFirstAddress()
DStandardSocketOptions.java296 public static final SocketOption<NetworkInterface> IP_MULTICAST_IF =
297 new StdSocketOption<NetworkInterface>("IP_MULTICAST_IF", NetworkInterface.class);
DDefaultInterface.java38 static NetworkInterface getDefault() { in getDefault()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java32 import java.net.NetworkInterface;
53 import static java.net.NetworkInterface.getNetworkInterfaces;
60 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6()
101 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testInterfaceProperties()
102 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties()
119 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testGetByIndex()
124 assertEquals(nif, NetworkInterface.getByIndex(nifIndex)); in testGetByIndex()
129 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback()
139 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testDumpAll()
179 NetworkInterface lo = NetworkInterface.getByName("lo"); in testInterfaceRemoval()
[all …]
DOldDatagramSocketImplFactoryTest.java26 import java.net.NetworkInterface;
161 protected void joinGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException { in joinGroup()
169 protected void leaveGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException { in leaveGroup()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInet6Address.java47 Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in Inet6Address()
58 java.lang.String host, byte[] addr, java.net.NetworkInterface nif) in getByAddress()
73 private void initif(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in initif()
82 private static int deriveNumericScope(byte[] thisAddr, java.net.NetworkInterface ifc) in deriveNumericScope()
156 public java.net.NetworkInterface getScopedInterface() { in getScopedInterface()
235 java.net.NetworkInterface ifname, in Inet6AddressHolder()
248 void init(byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException { in init()
314 java.net.NetworkInterface scope_ifname;
/libcore/ojluni/src/main/java/sun/nio/ch/
DMembershipKeyImpl.java29 import java.net.NetworkInterface;
44 private final NetworkInterface interf;
57 NetworkInterface interf, in MembershipKeyImpl()
76 NetworkInterface interf, in Type4()
111 NetworkInterface interf, in Type6()
161 public NetworkInterface networkInterface() { in networkInterface()
/libcore/ojluni/src/main/java/java/nio/channels/
DMulticastChannel.java29 import java.net.NetworkInterface;
182 MembershipKey join(InetAddress group, NetworkInterface interf) in join()
231 MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) in join()
DMembershipKey.java29 import java.net.NetworkInterface;
167 public abstract NetworkInterface networkInterface(); in networkInterface()
/libcore/ojluni/src/test/java/net/InetAddress/
DIsReachable.java32 import java.net.NetworkInterface;
43 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testIsReachable()
DIsReachableViaLoopbackTest.java49 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testReachableViaLoopback()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelMulticastTest.java27 import java.net.NetworkInterface;
79 private NetworkInterface ipv4NetworkInterface;
80 private NetworkInterface ipv6NetworkInterface;
81 private NetworkInterface loopbackInterface;
89 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); in setUp()
94 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in setUp()
106 NetworkInterface nextInterface = interfaces.nextElement(); in setUp()
232 NetworkInterface networkInterface, ProtocolFamily protocolFamily) throws Exception { in check_joinAnySource()
322 ArrayList<NetworkInterface> realInterfaces = new ArrayList<NetworkInterface>(); in test_joinAnySource_networkInterfaces()
323 Enumeration<NetworkInterface> theInterfaces = NetworkInterface.getNetworkInterfaces(); in test_joinAnySource_networkInterfaces()
[all …]
DServerSocketChannelTest.java30 import java.net.NetworkInterface;
108 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in bind_nullBindsToAll()
110 NetworkInterface nic = interfaces.nextElement(); in bind_nullBindsToAll()
191 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in bind_loopback()
194 NetworkInterface nic = interfaces.nextElement(); in bind_loopback()
DMembershipKeyTest.java26 import java.net.NetworkInterface;
38 private static final NetworkInterface NETWORK_INTERFACE = getNetworkInterface();
263 private static NetworkInterface getNetworkInterface() { in getNetworkInterface()
265 return NetworkInterface.getByName("lo"); in getNetworkInterface()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DMockDatagramChannel.java23 import java.net.NetworkInterface;
120 public MembershipKey join(InetAddress group, NetworkInterface interf) { in join()
125 public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) in join()
/libcore/ojluni/src/test/java/net/Socks/
DSocksIPv6Test.java46 import java.net.NetworkInterface;
113 List<NetworkInterface> nics = Collections.list(NetworkInterface.getNetworkInterfaces()); in ensureIPv6OnLoopback()
114 for (NetworkInterface nic : nics) { in ensureIPv6OnLoopback()
/libcore/ojluni/annotations/mmodule/java/net/
DInet6Address.annotated.java36 …t6Address getByAddress(java.lang.String host, byte[] addr, java.net.NetworkInterface nif) throws j… in getByAddress()
64 public java.net.NetworkInterface getScopedInterface() { throw new RuntimeException("Stub!"); } in getScopedInterface()

12