pub unsafe extern "C" fn otThreadSetTmfOriginFilterEnabled(
aInstance: *mut otInstance,
aEnabled: bool,
)
Expand description
Enables or disables the filter to drop TMF UDP messages from untrusted origin.
TMF messages are only trusted when they originate from a trusted source, such as the Thread interface. In special cases, such as when a device uses platform UDP socket to send TMF messages, they will be dropped due to untrusted origin. This filter is enabled by default.
When this filter is disabled, UDP messages sent to the TMF port that originate from untrusted origin (such as host, CLI or an external IPv6 node) will be allowed.
@note This API requires OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
and is only used by Thread Test Harness
to test network behavior by sending special TMF messages from the CLI on a POSIX host.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnabled TRUE to enable filter, FALSE otherwise.