Home | History | Annotate | Download | only in android-clat

Lines Matching full:ipv4

95  * locates the config item, parses the ipv4 address, and returns the pointer ret_val_ptr, or NULL on failure
112 logmsg(ANDROID_LOG_FATAL,"invalid IPv4 address specified for %s: %s", item_name, tmp);
190 * picks a random interface ID that is checksum neutral with the IPv4 address and the NAT64 prefix
192 * ipv4_local_subnet - clat IPv4 address
201 // checksum(Local IPv4 | Remote IPv4) = checksum(Local IPv6 | Remote IPv6)
202 // in other words (because remote IPv6 = NAT64 prefix | Remote IPv4):
203 // checksum(Local IPv4) = checksum(Local IPv6 | NAT64 prefix)
240 * picks a free IPv4 address, starting from ip and trying all addresses in the prefix in order
243 * returns: the IPv4 address, or INADDR_NONE if no addresses were available
255 in_addr_t ipv4 = ntohl(ip->s_addr);
256 in_addr_t first_ipv4 = ipv4;
257 in_addr_t prefix = ipv4 & mask;
259 // Pick the first IPv4 address in the pool, wrapping around if necessary.
262 if (config_is_ipv4_address_free(htonl(ipv4))) {
263 chosen = htonl(ipv4);
266 ipv4 = prefix | ((ipv4 + 1) & ~mask);
267 } while (ipv4 != first_ipv4);