Searched refs:ipaddress (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/main/java/java/net/ |
D | Inet4Address.java | 51 Inet4Address(byte[] ipaddress, String hostName) { in Inet4Address() argument 52 super(AF_INET, ipaddress, hostName); in Inet4Address() 56 …return ipaddress[0] == 0 && ipaddress[1] == 0 && ipaddress[2] == 0 && ipaddress[3] == 0; // 0.0.0.0 in isAnyLocalAddress() 61 return ((ipaddress[0] & 0xff) == 169) && ((ipaddress[1] & 0xff) == 254); // 169.254/16 in isLinkLocalAddress() 65 return ((ipaddress[0] & 0xff) == 127); // 127/8 in isLoopbackAddress() 74 int address = Memory.peekInt(ipaddress, 0, ByteOrder.BIG_ENDIAN); in isMCGlobal() 98 … return ((ipaddress[0] & 0xff) == 224) && (ipaddress[1] == 0) && (ipaddress[2] == 0); // 224.0.0/24 in isMCLinkLocal() 106 return ((ipaddress[0] & 0xff) == 239) && ((ipaddress[1] & 0xfc) == 192); // 239.192/14 in isMCOrgLocal() 110 return ((ipaddress[0] & 0xff) == 239) && ((ipaddress[1] & 0xff) == 255); // 239.255/16 in isMCSiteLocal() 114 return (ipaddress[0] & 0xf0) == 224; // 224/4 in isMulticastAddress() [all …]
|
D | Inet6Address.java | 65 Inet6Address(byte[] ipaddress, String hostName, int scope_id) { in Inet6Address() argument 66 super(AF_INET6, ipaddress, hostName); in Inet6Address() 173 return Arrays.equals(ipaddress, Inet6Address.ANY.ipaddress); in isAnyLocalAddress() 183 if (ipaddress[i] != 0) { in isIPv4CompatibleAddress() 191 return ((ipaddress[0] & 0xff) == 0xfe) && ((ipaddress[1] & 0xc0) == 0x80); // fe80:/10 in isLinkLocalAddress() 195 return Arrays.equals(ipaddress, Inet6Address.LOOPBACK.ipaddress); in isLoopbackAddress() 199 return ((ipaddress[0] & 0xff) == 0xff) && ((ipaddress[1] & 0x0f) == 0x0e); // ffxe:/16 in isMCGlobal() 203 return ((ipaddress[0] & 0xff) == 0xff) && ((ipaddress[1] & 0x0f) == 0x02); // ffx2:/16 in isMCLinkLocal() 207 return ((ipaddress[0] & 0xff) == 0xff) && ((ipaddress[1] & 0x0f) == 0x01); // ffx1:/16 in isMCNodeLocal() 211 return ((ipaddress[0] & 0xff) == 0xff) && ((ipaddress[1] & 0x0f) == 0x08); // ffx8:/16 in isMCOrgLocal() [all …]
|
D | InetAddress.java | 135 byte[] ipaddress; field in InetAddress 150 InetAddress(int family, byte[] ipaddress, String hostName) { in InetAddress() argument 152 this.ipaddress = ipaddress; in InetAddress() 170 return Arrays.equals(this.ipaddress, ((InetAddress) obj).ipaddress); in equals() 181 return ipaddress.clone(); in getAddress() 406 return Arrays.hashCode(ipaddress); in hashCode() 474 return makeInetAddress(address.ipaddress.clone(), hostname); in getHostByAddrImpl() 861 if (ipaddress == null) { in writeObject() 864 fields.put("address", Memory.peekInt(ipaddress, 0, ByteOrder.BIG_ENDIAN)); in writeObject() 875 ipaddress = new byte[4]; in readObject() [all …]
|
D | InetUnixAddress.java | 46 return "InetUnixAddress[" + new String(ipaddress, StandardCharsets.UTF_8) + "]"; in toString()
|
D | InterfaceAddress.java | 59 for (byte b : mask.ipaddress) { in countPrefixLength()
|
D | PlainDatagramSocketImpl.java | 158 sender.ipaddress = packet.getAddress().getAddress(); in peek()
|