Lines Matching refs:name

34  * This class represents a Network Interface made up of a name,
44 private String name;
67 * Returns an NetworkInterface object with index set to 0 and name to null.
75 NetworkInterface(String name, int index, InetAddress[] addrs) {
76 this.name = name;
82 * Get the name of this network interface.
84 * @return the name of this network interface
87 return name;
225 * and interfaces with the same name can have different indexes on different
238 * Get the display name of this network interface.
239 * A display name is a human readable String describing the network
242 * @return a non-empty string representing the display name of this network
243 * interface, or null if no display name is available.
251 * Searches for the network interface with the specified name.
253 * @param name
254 * The name of the network interface.
256 * @return A <tt>NetworkInterface</tt> with the specified name,
258 * with the specified name.
264 * If the specified name is <tt>null</tt>.
266 public static NetworkInterface getByName(String name) throws SocketException {
267 if (name == null)
269 return getByName0(name);
360 private native static NetworkInterface getByName0(String name)
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);
470 * MTU). Usually the name of the interface will the name of the parent
482 private native static boolean isUp0(String name, int ind) throws SocketException;
483 private native static boolean isLoopback0(String name, int ind) throws SocketException;
484 private native static boolean supportsMulticast0(String name, int ind) throws SocketException;
485 private native static boolean isP2P0(String name, int ind) throws SocketException;
486 private native static byte[] getMacAddr0(byte[] inAddr, String name, int ind) throws SocketException;
487 private native static int getMTU0(String name, int ind) throws SocketException;
496 * NetworkInterface if both name and addrs are the same for both.
508 if (this.name != null ) {
509 if (!this.name.equals(that.name)) {
513 if (that.name != null) {
549 return name == null? 0: name.hashCode();
553 String result = "name:";
554 result += name == null? "null": name;