Skip to main content

otIp6SetAllowUnsecureWhenDisabled

Function otIp6SetAllowUnsecureWhenDisabled 

Source
pub unsafe extern "C" fn otIp6SetAllowUnsecureWhenDisabled(
    aInstance: *mut otInstance,
    aAllow: bool,
)
Expand description

Sets whether to allow link-local unsecure IPv6 datagrams when the Thread role is disabled.

Available only when OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE is enabled. This is intended for testing. By default, this is disabled (i.e., unsecure traffic is always dropped regardless of the device’s role).

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aAllow TRUE to allow, FALSE otherwise.