Lines Matching refs:addr

224     Inet6Address(String hostName, byte addr[], int scope_id) {
226 if (addr.length == INADDRSZ) { // normal IPv6 address
228 ipaddress = addr.clone();
236 Inet6Address(String hostName, byte addr[]) {
238 initif (hostName, addr, null);
242 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException {
243 initif (hostName, addr, nif);
246 Inet6Address (String hostName, byte addr[], String ifname) throws UnknownHostException {
247 initstr (hostName, addr, ifname);
253 * for the address type specified in <code>addr</code>.
260 * @param addr the raw IP address in network byte order
269 public static Inet6Address getByAddress(String host, byte[] addr, NetworkInterface nif)
276 if (addr != null) {
277 if (addr.length == Inet6Address.INADDRSZ) {
278 return new Inet6Address(host, addr, nif);
281 throw new UnknownHostException("addr is of illegal length");
292 * @param addr the raw IP address in network byte order
300 public static Inet6Address getByAddress(String host, byte[] addr, int scope_id)
307 if (addr != null) {
308 if (addr.length == Inet6Address.INADDRSZ) {
309 return new Inet6Address(host, addr, scope_id);
312 throw new UnknownHostException("addr is of illegal length");
315 private void initstr (String hostName, byte addr[], String ifname) throws UnknownHostException {
321 initif (hostName, addr, nif);
327 private void initif(String hostName, byte addr[],NetworkInterface nif) throws UnknownHostException {
329 if (addr.length == INADDRSZ) { // normal IPv6 address
331 ipaddress = addr.clone();
360 InetAddress addr = addresses.nextElement();
361 if (!(addr instanceof Inet6Address)) {
364 Inet6Address ia6_addr = (Inet6Address)addr;
388 InetAddress addr = (InetAddress)addresses.nextElement();
389 if (!(addr instanceof Inet6Address)) {
392 Inet6Address ia6_addr = (Inet6Address)addr;