/openjdk7/jdk/test/java/net/NetworkInterface/ |
H A D | IndexTest.java | 35 NetworkInterface nif = null; 37 nif = netifs.nextElement(); 38 int index = nif.getIndex(); 41 if (! nif.equals(nif2)) { 47 nif = NetworkInterface.getByIndex(-1); 53 nif = NetworkInterface.getByIndex(Integer.MAX_VALUE - 1); 54 if (nif != null) {
|
H A D | IPv4Only.java | 41 NetworkInterface nif = nifs.nextElement(); 42 Enumeration<InetAddress> addrs = nif.getInetAddresses();
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | BasicMulticastTests.java | 43 static void membershipKeyTests(NetworkInterface nif, argument 49 group.getHostAddress(), nif.getName()); 59 MembershipKey key = dc.join(group, nif); 60 MembershipKey other = dc.join(group, nif); 70 if (!key.networkInterface().equals(nif)) 83 key = dc.join(group, nif, source); 84 other = dc.join(group, nif, source); 92 if (!key.networkInterface().equals(nif)) 112 static void exceptionTests(NetworkInterface nif) argument 127 key = dc.join(group, nif); [all...] |
H A D | NetworkConfiguration.java | 52 Iterable<InetAddress> ip4Addresses(NetworkInterface nif) { argument 53 return ip4Interfaces.get(nif); 56 Iterable<InetAddress> ip6Addresses(NetworkInterface nif) { argument 57 return ip6Interfaces.get(nif); 69 for (NetworkInterface nif: nifs) { 71 if (!nif.isUp() || !nif.supportsMulticast() || nif.isLoopback()) 74 List<InetAddress> addrs = Collections.list(nif.getInetAddresses()); 78 List<InetAddress> list = ip4Interfaces.get(nif); [all...] |
H A D | MulticastSendReceiveTests.java | 54 NetworkInterface nif, 63 .setOption(StandardSocketOptions.IP_MULTICAST_IF, nif); 142 NetworkInterface nif, 155 nif.getName()); 158 key = dc.join(group, nif); 169 int id = sendDatagram(source, nif, group, port); 181 id = sendDatagram(source, nif, group, port); 187 id = sendDatagram(source, nif, group, port); 205 nif.getName(), bogus.getHostAddress()); 208 key = dc.join(group, nif, bogu 53 sendDatagram(InetAddress local, NetworkInterface nif, InetAddress group, int port) argument 141 test(ProtocolFamily family, NetworkInterface nif, InetAddress group, InetAddress source) argument [all...] |
/openjdk7/jdk/src/windows/native/java/net/ |
H A D | NetworkInterface_winXP.c | 48 void printnif (netif *nif) { argument 50 printf ("nif:0x%I64x name:%s\n", nif,nif->name); 52 printf ("nif:0x%x name:%s\n", nif,nif->name); 54 if (nif->dNameIsUnicode) { 55 printf ("dName:%S index:%d ", nif->displayName,nif 63 netif *nif; local 168 netif *nif=0, *dup_nif, *last=0, *loopif=0, *curr; local [all...] |
H A D | TwoStacksPlainDatagramSocketImpl.c | 1573 static int getInetAddrFromIf (JNIEnv *env, int family, jobject nif, jobject *iaddr) argument 1589 addrArray = (*env)->GetObjectField(env, nif, ni_addrsID); 1613 static int getInet4AddrFromIf (JNIEnv *env, jobject nif, struct in_addr *iaddr) argument 1617 int ret = getInetAddrFromIf (env, IPv4, nif, &addr); 1628 static int getIndexFromIf (JNIEnv *env, jobject nif) { argument 1638 return (*env)->GetIntField(env, nif, ni_indexID);
|
/openjdk7/jdk/test/java/net/Inet6Address/ |
H A D | B6558853.java | 45 NetworkInterface nif = l.nextElement(); 46 if (!nif.isUp()) 49 for (InterfaceAddress a : nif.getInterfaceAddresses()) {
|
/openjdk7/jdk/test/java/net/Inet6Address/serialize/ |
H A D | Serialize.java | 43 NetworkInterface nif = (NetworkInterface)nifs.nextElement(); 44 Enumeration addrs = nif.getInetAddresses(); 58 Inet6Address addr1 = Inet6Address.getByAddress ("foo", bytes, nif);
|
/openjdk7/jdk/test/java/net/InetAddress/ |
H A D | CheckJNI.java | 58 NetworkInterface nif = (NetworkInterface)ifs.nextElement(); 59 if (!nif.isUp()) 61 Enumeration addrs = nif.getInetAddresses();
|
/openjdk7/jdk/src/share/classes/java/net/ |
H A D | Inet6Address.java | 242 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException { argument 243 initif (hostName, addr, nif); 261 * @param nif an interface this address must be associated with. 269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif) argument 278 return new Inet6Address(host, addr, nif); 317 NetworkInterface nif = NetworkInterface.getByName (ifname); 318 if (nif == null) { 321 initif (hostName, addr, nif); 327 private void initif(String hostName, byte addr[],NetworkInterface nif) throws UnknownHostException { argument 333 if (nif ! [all...] |
/openjdk7/jdk/test/java/net/ipv6tests/ |
H A D | ScopeTests.java | 84 NetworkInterface nif = (NetworkInterface)e.nextElement(); 85 String name = nif.getName(); 86 Enumeration addrs = nif.getInetAddresses();
|