Home
last modified time | relevance | path

Searched refs:networkInterface (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/main/java/java/net/
DMulticastSocket.java277 NetworkInterface networkInterface = NetworkInterface.getByInetAddress(address); in setInterface() local
278 if (networkInterface == null) { in setInterface()
281 impl.setOption(SocketOptions.IP_MULTICAST_IF2, networkInterface.getIndex()); in setInterface()
291 public void setNetworkInterface(NetworkInterface networkInterface) throws SocketException { in setNetworkInterface() argument
293 if (networkInterface == null) { in setNetworkInterface()
297 impl.setOption(SocketOptions.IP_MULTICAST_IF2, networkInterface.getIndex()); in setNetworkInterface()
DPlainDatagramSocketImpl.java121 …ivate static StructGroupReq makeGroupReq(InetAddress gr_group, NetworkInterface networkInterface) { in makeGroupReq() argument
122 int gr_interface = (networkInterface != null) ? networkInterface.getIndex() : 0; in makeGroupReq()
DNetworkInterface.java264 for (NetworkInterface networkInterface : getNetworkInterfacesList()) { in getByInetAddress()
265 if (networkInterface.addresses.contains(address)) { in getByInetAddress()
266 return networkInterface; in getByInetAddress()
DInetAddress.java708 …public boolean isReachable(NetworkInterface networkInterface, final int ttl, final int timeout) th… in isReachable() argument
714 if (networkInterface == null) { in isReachable()
720 List<InetAddress> sourceAddresses = Collections.list(networkInterface.getInetAddresses()); in isReachable()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java159 NetworkInterface networkInterface = networkInterfaces.nextElement(); in getNonLoopbackNetworkInterfaceAddress() local
160 if (networkInterface.isLoopback() || !networkInterface.isUp()) { in getNonLoopbackNetworkInterfaceAddress()
163 Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses(); in getNonLoopbackNetworkInterfaceAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java313 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument
324 receivingSocket.joinGroup(groupAddress, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
339 receivingSocket.joinGroup(groupAddress, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
449 NetworkInterface networkInterface, InetAddress group) throws Exception { in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins() argument
454 mss.joinGroup(groupSockAddr, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins()
457 mss.joinGroup(groupSockAddr, networkInterface); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins()
551 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() argument
567 mss.joinGroup(groupSockAddr, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
569 mss.leaveGroup(groupSockAddr2, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
574 mss.leaveGroup(groupSockAddr, networkInterface); in test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface()
[all …]
DInetAddressTest.java388 NetworkInterface networkInterface = networkInterfaces.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() local
389 Enumeration<InetAddress> addresses = networkInterface in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
394 loopbackInterface = networkInterface; in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()