Skip to main content

otHistoryTrackerIterateFavoredOmrPrefixHistory

Function otHistoryTrackerIterateFavoredOmrPrefixHistory 

Source
pub unsafe extern "C" fn otHistoryTrackerIterateFavoredOmrPrefixHistory(
    aInstance: *mut otInstance,
    aIterator: *mut otHistoryTrackerIterator,
    aEntryAge: *mut u32,
) -> *const otHistoryTrackerFavoredOmrPrefix
Expand description

Iterates over the entries in the favored OMR prefix history list.

Requires OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE (device acting as Border Router).

@param[in] aInstance A pointer to the OpenThread instance. @param[in,out] aIterator A pointer to an iterator. MUST be initialized or the behavior is undefined. @param[out] aEntryAge A pointer to a variable to output the entry’s age. MUST NOT be NULL. Age is provided as the duration (in milliseconds) from when entry was recorded to @p aIterator initialization time. It is set to OT_HISTORY_TRACKER_MAX_AGE for entries older than max age.

@returns The otHistoryTrackerFavoredOmrPrefix entry or NULL if no more entries in the list.