pub unsafe extern "C" fn otPlatBorderRoutingProcessDhcp6PdPrefix(
aInstance: *mut otInstance,
aPrefixInfo: *const otBorderRoutingPrefixTableEntry,
)
Expand description
Callback to report a single DHCPv6 Prefix Delegation (PD) prefix.
Requires OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE
and OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE
to
be enabled, while OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_CLIENT_ENABLE
should be disabled.
When OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_CLIENT_ENABLE
is enabled, the OpenThread stack’s native DHCPv6
PD client will be used. Otherwise, the platform layer is expected to interact with DHCPv6 servers to acquire
and provide the delegated prefix(es) using this callback or otPlatBorderRoutingProcessIcmp6Ra()
.
This function can be called again to renew/refresh the lifetimes of PD prefixes or to signal their deprecation (by setting a zero “preferred lifetime”) or removal (by setting a zero “valid lifetime”). This function may be called multiple times to provide different PD prefixes.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPrefixInfo A pointer to the prefix information structure.