Searched refs:addrs (Results 1 – 6 of 6) sorted by relevance
64 private InetAddress addrs[]; field in NetworkInterface107 NetworkInterface(String name, int index, InetAddress[] addrs) { in NetworkInterface() argument110 this.addrs = addrs; in NetworkInterface()143 local_addrs = new InetAddress[addrs.length]; in getInetAddresses()154 for (int j=0; j<addrs.length; j++) { in getInetAddresses()157 sec.checkConnect(addrs[j].getHostAddress(), -1); in getInetAddresses()159 local_addrs[count++] = addrs[j]; in getInetAddresses()429 List<InetAddress> addrs = new ArrayList<>(); in getAll() local434 addrs.add(ifa.ifa_addr); in getAll()444 ni.addrs = addrs.toArray(new InetAddress[addrs.size()]); in getAll()[all …]
522 Enumeration<InetAddress> addrs = ni.getInetAddresses(); in getInterface() local523 while (addrs.hasMoreElements()) { in getInterface()524 InetAddress addr = addrs.nextElement(); in getInterface()576 InetAddress[] addrs = new InetAddress[1]; in getNetworkInterface() local577 addrs[0] = InetAddress.anyLocalAddress(); in getNetworkInterface()578 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface()
386 Enumeration<InetAddress> addrs = netif.getInetAddresses(); in test_isLoopback() local387 while (addrs != null && addrs.hasMoreElements()) { in test_isLoopback()388 if (addrs.nextElement().isLoopbackAddress()) { in test_isLoopback()454 Enumeration addrs = theInterface.getInetAddresses(); in setUp() local455 if ((addrs != null) && (addrs.hasMoreElements())) { in setUp()469 Enumeration addrs = theInterface.getInetAddresses(); in setUp() local470 if ((addrs != null) && (addrs.hasMoreElements())) { in setUp()
133 List<InterfaceAddress> addrs = theInterface in setUp() local135 if (!(addrs == null || addrs.isEmpty())) { in setUp()136 interfaceAddr = addrs.get(0); in setUp()
628 List<InetAddress> addrs = Arrays.asList(InetAddress.getAllByName(host));629 return addrs.stream().allMatch(InetAddress::isLoopbackAddress) &&630 addrs.contains(Inet4Address.LOOPBACK) && addrs.contains(Inet6Address.LOOPBACK);
210 Enumeration<InetAddress> addrs = interf.getInetAddresses(); in anyInet4Address()211 while (addrs.hasMoreElements()) { in anyInet4Address()212 InetAddress addr = addrs.nextElement(); in anyInet4Address()