# otHistoryTrackerFavoredOnLinkPrefix Struct Reference

# otHistoryTrackerFavoredOnLinkPrefix


`#include <openthread/history_tracker.h>`

Represents a favored on-link prefix on AIL tracked by a device acting as a Border Router (BR).

## Summary

The `mIsLocal` field indicates whether the favored on-link prefix is the same as the local one maintained by this BR.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-favored-on-link-prefix#structot_history_tracker_favored_on_link_prefix_1a8584da4994888de999c855990fa3dfa3` | `bool` `true` if the prefix is the local on-link prefix; `false` otherwise. |
| `https://openthread.io/reference/struct/ot-history-tracker-favored-on-link-prefix#structot_history_tracker_favored_on_link_prefix_1a98e1a290036cb83264c13e98efc88c89` | `https://openthread.io/reference/struct/ot-ip6-prefix` The on-link prefix. |

## Public attributes

### mIsLocal

```
bool otHistoryTrackerFavoredOnLinkPrefix::mIsLocal
```
`true` if the prefix is the local on-link prefix; `false` otherwise.

### mOnLinkPrefix

```
otIp6Prefix otHistoryTrackerFavoredOnLinkPrefix::mOnLinkPrefix
```
The on-link prefix.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).