pub unsafe extern "C" fn otPlatBorderRoutingProcessIcmp6Ra(
aInstance: *mut otInstance,
aMessage: *const u8,
aLength: u16,
)
Expand description
Handles ICMP6 RA messages received on the Thread interface on the platform.
The aMessage
should point to a buffer of a valid ICMPv6 message (without IP headers) with router advertisement as
the value of type field of the message.
When DHCPv6 PD is disabled, the message will be dropped silently.
Note: RA messages will not be forwarded into Thread networks, while for many platforms, RA messages is the way of distributing a prefix and other infomations to the downstream network. The typical usecase of this function is to handle the router advertisement messages sent by the platform as a result of DHCPv6 Prefix Delegation.
Requires OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE
.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMessage A pointer to an ICMPv6 RouterAdvertisement message. @param[in] aLength The length of ICMPv6 RouterAdvertisement message.