Home | History | Annotate | Download | only in net

Lines Matching refs:address

28  * Identifies an address of a network link
33 * IPv4 or IPv6 address.
35 private final InetAddress address;
42 public LinkAddress(InetAddress address, int prefixLength) {
43 if (address == null || prefixLength < 0 ||
44 ((address instanceof Inet4Address) && prefixLength > 32) ||
46 throw new IllegalArgumentException("Bad LinkAddress params " + address +
49 this.address = address;
54 this.address = interfaceAddress.getAddress();
60 return (address == null ? "" : (address.getHostAddress() + "/" + prefixLength));
64 * Compares this {@code LinkAddress} instance against the specified address
77 return this.address.equals(linkAddress.address) &&
86 return ((null == address) ? 0 : address.hashCode()) + prefixLength;
90 * Returns the InetAddress for this address.
93 return address;
116 if (address != null) {
118 dest.writeByteArray(address.getAddress());
132 InetAddress address = null;
136 address = InetAddress.getByAddress(in.createByteArray());
140 return new LinkAddress(address, prefixLength);