pub unsafe extern "C" fn otLinkSetPromiscuous(
aInstance: *mut otInstance,
aPromiscuous: bool,
) -> otError
Expand description
Enables or disables the link layer promiscuous mode.
@note Promiscuous mode may only be enabled when the Thread interface is disabled.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPromiscuous true to enable promiscuous mode, or false otherwise.
@retval OT_ERROR_NONE Successfully enabled promiscuous mode. @retval OT_ERROR_INVALID_STATE Could not enable promiscuous mode because the Thread interface is enabled.