openthread_sys

Function otNat64GetTranslatorState

Source
pub unsafe extern "C" fn otNat64GetTranslatorState(
    aInstance: *mut otInstance,
) -> otNat64State
Expand description

Gets the state of NAT64 translator.

Available when OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE is enabled.

@param[in] aInstance A pointer to an OpenThread instance.

@retval OT_NAT64_STATE_DISABLED NAT64 translator is disabled. @retval OT_NAT64_STATE_NOT_RUNNING NAT64 translator is enabled, but the translator is not configured with a valid NAT64 prefix and a CIDR. @retval OT_NAT64_STATE_ACTIVE NAT64 translator is enabled, and is translating packets.