[][src]Function openthread_sys::otIcmp6RegisterHandler

pub unsafe extern "C" fn otIcmp6RegisterHandler(
    aInstance: *mut otInstance,
    aHandler: *mut otIcmp6Handler
) -> otError

This function registers a handler to provide received ICMPv6 messages.

@note A handler structure @p aHandler has to be stored in persistent (static) memory. OpenThread does not make a copy of handler structure.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aHandler A pointer to a handler containing callback that is called when an ICMPv6 message is received.