# otHistoryTrackerFavoredOmrPrefix Struct Reference

# otHistoryTrackerFavoredOmrPrefix


`#include <openthread/history_tracker.h>`

Represents a favored OMR prefix tracked by a device acting as a Border Router (BR).

## Summary

The `mIsLocal` field indicates whether the favored OMR prefix is the same as the local one maintained by this BR. The local OMR prefix can be either based on (random) ULA or a prefix delegated via DHCPv6-PD.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-favored-omr-prefix#structot_history_tracker_favored_omr_prefix_1ac887d749e0338703df06cb732886092a` | `bool` `true` if the prefix is the local OMR prefix; `false` otherwise. |
| `https://openthread.io/reference/struct/ot-history-tracker-favored-omr-prefix#structot_history_tracker_favored_omr_prefix_1a15646e1a1897e187e8cc231beefe26cc` | `https://openthread.io/reference/struct/ot-ip6-prefix` The OMR prefix. |
| `https://openthread.io/reference/struct/ot-history-tracker-favored-omr-prefix#structot_history_tracker_favored_omr_prefix_1a6575b99e855b94a89afe6e8f56c989db` | `signed int` The 2-bit signed preference (`OT_ROUTE_PREFERENCE_*` values). |

## Public attributes

### mIsLocal

```
bool otHistoryTrackerFavoredOmrPrefix::mIsLocal
```
`true` if the prefix is the local OMR prefix; `false` otherwise.

### mOmrPrefix

```
otIp6Prefix otHistoryTrackerFavoredOmrPrefix::mOmrPrefix
```
The OMR prefix.

### mPreference

```
signed int otHistoryTrackerFavoredOmrPrefix::mPreference
```
The 2-bit signed preference (`OT_ROUTE_PREFERENCE_*` values).

## 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).