pub unsafe extern "C" fn otIp4NewMessage(
    aInstance: *mut otInstance,
    aSettings: *const otMessageSettings
) -> *mut otMessage
Expand description

Allocate a new message buffer for sending an IPv4 message to the NAT64 translator.

Message buffers allocated by this function will have 20 bytes (difference between the size of IPv6 headers and IPv4 header sizes) reserved.

Available when OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE is enabled.

@note If @p aSettings is NULL, the link layer security is enabled and the message priority is set to OT_MESSAGE_PRIORITY_NORMAL by default.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aSettings A pointer to the message settings or NULL to set default settings.

@returns A pointer to the message buffer or NULL if no message buffers are available or parameters are invalid.

@sa otNat64Send