openthread_sys

Function otPlatTrelHandleReceived

Source
pub unsafe extern "C" fn otPlatTrelHandleReceived(
    aInstance: *mut otInstance,
    aBuffer: *mut u8,
    aLength: u16,
)
Expand description

Is a callback from platform to notify of a received TREL UDP packet.

@note The buffer content (up to its specified length) may get changed during processing by OpenThread core (e.g., decrypted in place), so the platform implementation should expect that after returning from this function the @p aBuffer content may have been altered.

@param[in] aInstance The OpenThread instance structure. @param[in] aBuffer A buffer containing the received UDP payload. @param[in] aLength UDP payload length (number of bytes).