# otHistoryTrackerAilRouter Struct Reference

# otHistoryTrackerAilRouter


`#include <openthread/history_tracker.h>`

Represents information about a discovered router on an Adjacent Infrastructure Link (AIL).

## Summary

This applies when a device is acting as a Border Router, processing received Router Advertisements and tracking information about discovered AIL routers.

`mProvidesDefaultRoute` indicates whether the router provides a default route. If it does, `mDefRoutePreference` specifies the route preference.

`mFavoredOnLinkPrefix` indicates the favored on-link prefix advertised by the router. If there is no on-link prefix, this will be an empty prefix (i.e., its length will be zero).

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a82097178aafbf9fedc29f6dca2d9e46f` | `https://openthread.io/reference/struct/ot-ip6-address` The IPv6 address of the AIL router. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a34c5c90ffaa69aba7e44bb911bc29227` | `int8_t` Def route preference. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1ad28a2339e980345abbbd70f7c9fb7faf` | `https://openthread.io/reference/group/api-history-tracker#group__api-history-tracker_1ga8e2c4fcb6dc19e0513c3d506f8f6079f` The event type (e.g., added, changed, removed). |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1abf078329b3133bba12030862e17f55c7` | `https://openthread.io/reference/struct/ot-ip6-prefix` The favored on-link prefix, if any. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a2b1b66380d7b8ee8a62d66b13b2e46c5` | `bool` This router is the local device (this BR). |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a83c130975cba4065debce862c1e3c3a1` | `bool` This router is (likely) a peer BR. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1ad4ed9d67baf0e02abe012180c241692b` | `bool` This router is reachable. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1adc82d67952000987e149b02da6428aae` | `bool` The Managed Address Config flag (`M` flag). |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1ac6adc572f24d78654c125b4417faf6cc` | `bool` The Other Config flag (`O` flag). |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a3be2609fbdfa05a2ac5c5543d8f0df67` | `bool` Whether the router provides a default route. |
| `https://openthread.io/reference/struct/ot-history-tracker-ail-router#structot_history_tracker_ail_router_1a09d2033fbdc4d63509bba87a67d1cc44` | `bool` The SNAC Router flag (`S` flag). |

## Public attributes

### mAddress

```
otIp6Address otHistoryTrackerAilRouter::mAddress
```
The IPv6 address of the AIL router.

### mDefRoutePreference

```
int8_t otHistoryTrackerAilRouter::mDefRoutePreference
```
Def route preference.

### mEvent

```
otHistoryTrackerAilRouterEvent otHistoryTrackerAilRouter::mEvent
```
The event type (e.g., added, changed, removed).

### mFavoredOnLinkPrefix

```
otIp6Prefix otHistoryTrackerAilRouter::mFavoredOnLinkPrefix
```
The favored on-link prefix, if any.

### mIsLocalDevice

```
bool otHistoryTrackerAilRouter::mIsLocalDevice
```
This router is the local device (this BR).

### mIsPeerBr

```
bool otHistoryTrackerAilRouter::mIsPeerBr
```
This router is (likely) a peer BR.

### mIsReachable

```
bool otHistoryTrackerAilRouter::mIsReachable
```
This router is reachable.

### mManagedAddressConfigFlag

```
bool otHistoryTrackerAilRouter::mManagedAddressConfigFlag
```
The Managed Address Config flag (`M` flag).

### mOtherConfigFlag

```
bool otHistoryTrackerAilRouter::mOtherConfigFlag
```
The Other Config flag (`O` flag).

### mProvidesDefaultRoute

```
bool otHistoryTrackerAilRouter::mProvidesDefaultRoute
```
Whether the router provides a default route.

### mSnacRouterFlag

```
bool otHistoryTrackerAilRouter::mSnacRouterFlag
```
The SNAC Router flag (`S` flag).

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