Home | History | Annotate | Download | only in DNS

Lines Matching full:address

13  * The option is used to convey information about the IP address of the
15 * based on this address, rather than the address of the intermediate
25 * for IPv6), a 1-byte source netmask, a 1-byte scope netmask, and an address
42 private InetAddress address;
50 int max = Address.addressLength(family) * 8;
60 * the address must not be greater than the supplied source netmask.
67 * @param address The address of the client.
70 ClientSubnetOption(int sourceNetmask, int scopeNetmask, InetAddress address) {
73 this.family = Address.familyOf(address);
78 this.address = Address.truncate(address, sourceNetmask);
80 if (!address.equals(this.address))
82 "valid for address");
89 * @param address The address of the client.
93 ClientSubnetOption(int sourceNetmask, InetAddress address) {
94 this(sourceNetmask, 0, address);
98 * Returns the family of the network address. This will be either IPv4 (1)
118 /** Returns the IP address of the client. */
121 return address;
127 if (family != Address.IPv4 && family != Address.IPv6)
128 throw new WireParseException("unknown address family");
130 if (sourceNetmask > Address.addressLength(family) * 8)
133 if (scopeNetmask > Address.addressLength(family) * 8)
136 // Read the truncated address
139 throw new WireParseException("invalid address");
141 // Convert it to a full length address.
142 byte [] fulladdr = new byte[Address.addressLength(family)];
146 address = InetAddress.getByAddress(fulladdr);
148 throw new WireParseException("invalid address", e);
151 InetAddress tmp = Address.truncate(address, sourceNetmask);
152 if (!tmp.equals(address))
161 out.writeByteArray(address.getAddress(), 0, (sourceNetmask + 7) / 8);
167 sb.append(address.getHostAddress());