otPlatInfraIfDhcp6PdClientHandleReceived

Function otPlatInfraIfDhcp6PdClientHandleReceived 

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

Callback from the platform to notify the OpenThread stack of a received DHCPv6 message.

This function is provided when OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_CLIENT_ENABLE is enabled.

The platform calls this function whenever a DHCPv6 message is received on the client port (546) while listening on this port is enabled (refer to otPlatInfraIfDhcp6PdClientSetListeningEnabled()).

The platform is responsible for allocating the otMessage to pass the received UDP payload. Ownership of the @p aMessage is passed to the OpenThread stack (which will free it once no longer needed).

@param[in] aInstance The OpenThread instance. @param[in] aMessage The otMessage containing the received DHCPv6 payload. Ownership is passed to OT stack. @param[in] aInfraIfIndex The index of the infrastructure interface from which the message was received..