pub unsafe extern "C" fn otIp4FromIp4MappedIp6Address(
aIp6Address: *const otIp6Address,
aIp4Address: *mut otIp4Address,
) -> otError
Expand description
Extracts the IPv4 address from a given IPv4-mapped IPv6 address.
An IPv4-mapped IPv6 address consists of an 80-bit prefix of zeros, the next 16 bits set to ones, and the remaining,
least-significant 32 bits contain the IPv4 address, e.g., ::ffff:192.0.2.128
representing 192.0.2.128
.
@param[in] aIp6Address An IPv6 address to extract IPv4 from. @param[out] aIp4Address An IPv4 address to output the extracted address.
@retval OT_ERROR_NONE Extracted the IPv4 address successfully. @p aIp4Address is updated. @retval OT_ERROR_PARSE The @p aIp6Address does not follow the IPv4-mapped IPv6 address format.