openthread_sys

Function otPlatInfraIfSendIcmp6Nd

Source
pub unsafe extern "C" fn otPlatInfraIfSendIcmp6Nd(
    aInfraIfIndex: u32,
    aDestAddress: *const otIp6Address,
    aBuffer: *const u8,
    aBufferLength: u16,
) -> otError
Expand description

Sends an ICMPv6 Neighbor Discovery message on given infrastructure interface.

See RFC 4861: https://tools.ietf.org/html/rfc4861.

@param[in] aInfraIfIndex The index of the infrastructure interface this message is sent to. @param[in] aDestAddress The destination address this message is sent to. @param[in] aBuffer The ICMPv6 message buffer. The ICMPv6 checksum is left zero and the platform should do the checksum calculate. @param[in] aBufferLength The length of the message buffer.

@note Per RFC 4861, the implementation should send the message with IPv6 link-local source address of interface @p aInfraIfIndex and IP Hop Limit 255.

@retval OT_ERROR_NONE Successfully sent the ICMPv6 message. @retval OT_ERROR_FAILED Failed to send the ICMPv6 message.