[][src]Function openthread_sys::otIp6SetEnabled

pub unsafe extern "C" fn otIp6SetEnabled(
    aInstance: *mut otInstance,
    aEnabled: bool
) -> otError

This function brings up/down the IPv6 interface.

Call this function to enable/disable IPv6 communication.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnabled TRUE to enable IPv6, FALSE otherwise.

@retval OT_ERROR_NONE Successfully brought the IPv6 interface up/down. @retval OT_ERROR_INVALID_STATE IPv6 interface is not available since device is operating in raw-link mode (applicable only when OPENTHREAD_CONFIG_LINK_RAW_ENABLE feature is enabled).