# otHistoryTrackerRouterInfo Struct Reference

# otHistoryTrackerRouterInfo


`#include <openthread/history_tracker.h>`

Represents a router table entry event.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-router-info#structot_history_tracker_router_info_1a0b9a0c5e7e06ebbd0c66e95facec1a3f` | `uint8_t` Router entry event (`OT_HISTORY_TRACKER_ROUTER_EVENT_*` enumeration). |
| `https://openthread.io/reference/struct/ot-history-tracker-router-info#structot_history_tracker_router_info_1aae0535247d805fcff13100366d2f1118` | `uint8_t` Next Hop Router ID - `OT_HISTORY_TRACKER_NO_NEXT_HOP` if no next hop. |
| `https://openthread.io/reference/struct/ot-history-tracker-router-info#structot_history_tracker_router_info_1a91ad9327bdfcc8474380de3b12c886d9` | `uint8_t` Old path cost - `OT_HISTORY_TRACKER_INFINITE_PATH_COST` if infinite or unknown. |
| `https://openthread.io/reference/struct/ot-history-tracker-router-info#structot_history_tracker_router_info_1aa7805a4e191e247137d73ec062501307` | `uint8_t` New path cost - `OT_HISTORY_TRACKER_INFINITE_PATH_COST` if infinite or unknown. |
| `https://openthread.io/reference/struct/ot-history-tracker-router-info#structot_history_tracker_router_info_1a18d2f103ea0f716cd9046306d5f22023` | `uint8_t` Router ID. |

## Public attributes

### mEvent

```
uint8_t otHistoryTrackerRouterInfo::mEvent
```
Router entry event (`OT_HISTORY_TRACKER_ROUTER_EVENT_*` enumeration).

### mNextHop

```
uint8_t otHistoryTrackerRouterInfo::mNextHop
```
Next Hop Router ID - `OT_HISTORY_TRACKER_NO_NEXT_HOP` if no next hop.

### mOldPathCost

```
uint8_t otHistoryTrackerRouterInfo::mOldPathCost
```
Old path cost - `OT_HISTORY_TRACKER_INFINITE_PATH_COST` if infinite or unknown.

### mPathCost

```
uint8_t otHistoryTrackerRouterInfo::mPathCost
```
New path cost - `OT_HISTORY_TRACKER_INFINITE_PATH_COST` if infinite or unknown.

### mRouterId

```
uint8_t otHistoryTrackerRouterInfo::mRouterId
```
Router ID.

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