openthread_sys

Function otIp4ExtractFromIp6Address

Source
pub unsafe extern "C" fn otIp4ExtractFromIp6Address(
    aPrefixLength: u8,
    aIp6Address: *const otIp6Address,
    aIp4Address: *mut otIp4Address,
)
Expand description

Set @p aIp4Address by performing NAT64 address translation from @p aIp6Address as specified in RFC 6052.

The NAT64 @p aPrefixLength MUST be one of the following values: 32, 40, 48, 56, 64, or 96, otherwise the behavior of this method is undefined.

@param[in] aPrefixLength The prefix length to use for IPv4/IPv6 translation. @param[in] aIp6Address A pointer to an IPv6 address. @param[out] aIp4Address A pointer to output the IPv4 address.