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

Gets the current preference used when advertising Route Info Options (RIO) in Router Advertisement messages sent over the infrastructure link.

The RIO preference is determined as follows:

  • If explicitly set by user by calling otBorderRoutingSetRouteInfoOptionPreference(), the given preference is used.
  • Otherwise, it is determined based on device’s current role: Medium preference when in router/leader role and low preference when in child role.

@returns The current Route Info Option preference.