openthread_sys

Function otBorderRoutingGetRoutePreference

Source
pub unsafe extern "C" fn otBorderRoutingGetRoutePreference(
    aInstance: *mut otInstance,
) -> otRoutePreference
Expand description

Gets the current preference used for published routes in Network Data.

The preference is determined as follows:

  • If explicitly set by user by calling otBorderRoutingSetRoutePreference(), the given preference is used.
  • Otherwise, it is determined automatically by RoutingManager based on the device’s role and link quality.

@param[in] aInstance A pointer to an OpenThread instance.

@returns The current published route preference.