openthread_sys

Function otBorderRoutingGetPdOmrPrefix

Source
pub unsafe extern "C" fn otBorderRoutingGetPdOmrPrefix(
    aInstance: *mut otInstance,
    aPrefixInfo: *mut otBorderRoutingPrefixTableEntry,
) -> otError
Expand description

Gets the DHCPv6 Prefix Delegation (PD) provided off-mesh-routable (OMR) prefix.

Only mPrefix, mValidLifetime and mPreferredLifetime fields are used in the returned prefix info.

OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE must be enabled.

@param[in] aInstance A pointer to an OpenThread instance. @param[out] aPrefixInfo A pointer to where the prefix info will be output to.

@retval OT_ERROR_NONE Successfully retrieved the OMR prefix. @retval OT_ERROR_INVALID_STATE The Border Routing Manager is not initialized yet. @retval OT_ERROR_NOT_FOUND There are no valid PD prefix on this BR.

@sa otBorderRoutingGetOmrPrefix @sa otPlatBorderRoutingProcessIcmp6Ra