Lines Matching defs:index
46 private int index;
53 private static final int defaultIndex; /* index of defaultInterface */
67 * Returns an NetworkInterface object with index set to 0 and name to null.
75 NetworkInterface(String name, int index, InetAddress[] addrs) {
77 this.index = index;
223 * Returns the index of this network interface. The index is an integer greater
228 * @return the index of this network interface or {@code -1} if the index is
234 return index;
273 * Get a network interface given its index.
275 * @param index an integer, the index of the interface
276 * @return the NetworkInterface obtained from its index, or {@code null} if
277 * there is no interface with such an index on the system
279 * @throws IllegalArgumentException if index has a negative value
283 public static NetworkInterface getByIndex(int index) throws SocketException {
284 if (index < 0)
285 throw new IllegalArgumentException("Interface index can't be negative");
286 return getByIndex0(index);
363 private native static NetworkInterface getByIndex0(int index)
378 return isUp0(name, index);
390 return isLoopback0(name, index);
405 return isP2P0(name, index);
417 return supportsMulticast0(name, index);
448 return getMacAddr0(((Inet4Address)addr).getAddress(), name, index);
451 return getMacAddr0(null, name, index);
462 return getMTU0(name, index);