pub unsafe extern "C" fn otBorderRoutingGetFavoredOnLinkPrefix(
aInstance: *mut otInstance,
aPrefix: *mut otIp6Prefix,
) -> otError
Expand description
Gets the currently favored On-Link Prefix.
The favored prefix is either a discovered on-link prefix on the infrastructure link or the local on-link prefix.
@param[in] aInstance A pointer to an OpenThread instance. @param[out] aPrefix A pointer to where the prefix will be output to.
@retval OT_ERROR_INVALID_STATE The Border Routing Manager is not initialized yet. @retval OT_ERROR_NONE Successfully retrieved the favored on-link prefix.