Skip to main content

otHistoryTrackerIterateDhcp6PdHistory

Function otHistoryTrackerIterateDhcp6PdHistory 

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

Iterates over the entries in the DHCPv6-PD history list.

Requires both OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE and OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE.

@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 otHistoryTrackerDhcp6PdInfo entry or NULL if no more entries in the list.