otPlatInfraIfDhcp6PdClientSend

Function otPlatInfraIfDhcp6PdClientSend 

Source
pub unsafe extern "C" fn otPlatInfraIfDhcp6PdClientSend(
    aInstance: *mut otInstance,
    aMessage: *mut otMessage,
    aDestAddress: *mut otIp6Address,
    aInfraIfIndex: u32,
)
Expand description

Sends a DHCPv6 message to a unicast or multicast destination address.

This function is only used when OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_CLIENT_ENABLE is enabled.

The platform is responsible for constructing a UDP datagram with the given DHCPv6 message as its payload. The datagram must be sent from the DHCPv6 client port (546) to the server port (547) on the specified infrastructure interface. The destination IPv6 address can be a unicast address or the multicast All_DHCP_Relay_Agents_and_Servers address (ff02::1:2).

This function passes the ownership of @p aMessage to the platform layer. Platform MUST then free the message when no longer needed.

@param[in] aInstance The OpenThread instance. @param[in] aMessage An otMessage containing the DHCPv6 payload. Ownership is passed to the platform layer. @param[in] aDestAddress The IPv6 multicast or unicast destination address. @param[in] aInfraIfIndex The index of the infrastructure interface from which to send the message.