[][src]Type Definition openthread_sys::otIcmp6ReceiveCallback

type otIcmp6ReceiveCallback = Option<unsafe extern "C" fn(aContext: *mut c_void, aMessage: *mut otMessage, aMessageInfo: *const otMessageInfo, aIcmpHeader: *const otIcmp6Header)>;

This callback allows OpenThread to inform the application of a received ICMPv6 message.

@param[in] aContext A pointer to arbitrary context information. @param[in] aMessage A pointer to the received message. @param[in] aMessageInfo A pointer to message information associated with @p aMessage. @param[in] aIcmpHeader A pointer to the received ICMPv6 header.