Searched refs:ni (Results 1 – 5 of 5) sorted by relevance
299 for (NetworkInterface ni : nis) { in getByName()300 if (ni.getName().equals(name)) { in getByName()301 return ni; in getByName()326 for (NetworkInterface ni : nis) { in getByIndex()327 if (ni.getIndex() == index) { in getByIndex()328 return ni; in getByIndex()366 for (NetworkInterface ni : nis) { in getByInetAddress()367 for (InetAddress inetAddress : Collections.list(ni.getInetAddresses())) { in getByInetAddress()369 return ni; in getByInetAddress()462 NetworkInterface ni = new NetworkInterface(name, index, null); in getAll() local[all …]
521 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface() local522 Enumeration<InetAddress> addrs = ni.getInetAddresses(); in getInterface()
302 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getOption() local303 if (ni == null) in getOption()305 return (T) ni; in getOption()311 NetworkInterface ni = NetworkInterface.getByIndex(index); in getOption()312 if (ni == null) in getOption()314 return (T) ni; in getOption()
222 nifs.forEach(ni -> actualNiNames.add(ni.getName())); in testGetNetworkInterfaces_matchesIfaddrs()
1653 for (NetworkInterface ni : nis) {1654 int index = ni.getIndex();1655 String name = ni.getName();