# otMeshDiagRouterInfo


`#include <openthread/mesh_diag.h>`

Represents information about a router in Thread mesh discovered using `https://openthread.io/reference/group/api-mesh-diag#group__api-mesh-diag_1ga5a11838d4525fd78682d462c2cbbae7a`.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1ad027a62f2bfc039edec6df8df1596aff` | `https://openthread.io/reference/group/api-mesh-diag#group__api-mesh-diag_1gab8bec167674afe5db2f84b8cb4f21bb4 *` A pointer to an iterator to go through the list of children of the router. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1af0ff8fa47a6a7ac75373e3a858f75693` | `https://openthread.io/reference/struct/ot-ext-address` Extended MAC address. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1aaf54eec62d6659d0f0607ddf730d3c7b` | `https://openthread.io/reference/group/api-mesh-diag#group__api-mesh-diag_1gae5a7d43450ad825715ea520ce8be63c6 *` A pointer to an iterator to go through the list of IPv6 addresses of the router. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1ab48381c38a1270dfe9c6e7d392baea42` | `bool` Whether router acts as a border router providing ext connectivity. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1af6dbb852f3ee6d816b518fa65866eccc` | `bool` Whether router is leader. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1ac2d20ea83a73d88e4018c0d8f89898ca` | `bool` Whether router is this device itself. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1a207672326d388517b6f449a9310509eb` | `bool` Whether router is parent of this device (when device is a child). |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1a3a100b43fccc7c418d3e55c96e0d2919[OT_NETWORK_MAX_ROUTER_ID+1]` | `uint8_t` Provides the link quality from this router to other routers, also indicating whether a link is established between the routers. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1a929f58e179fdc297cf4adce94fbbf8ee` | `uint16_t` RLOC16. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1a5dec50e8307ee92a7e630b32703c40cc` | `uint8_t` Router ID. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1a1dfa59e750cf5f6732d6d7070f1d9baf` | `https://openthread.io/reference/group/api-mesh-diag#group__api-mesh-diag_1ga1ef742308d032ac823ff8e002af4fdc1 *` A pointer to an iterator to go through the list of extra Network Diagnostic TLVs returned by the router. |
| `https://openthread.io/reference/struct/ot-mesh-diag-router-info#structot_mesh_diag_router_info_1abee023de931f46c75301d37cbf8a6ce2` | `uint16_t` Thread Version. `OT_MESH_DIAG_VERSION_UNKNOWN` if unknown. |

## Public attributes

### mChildIterator

```
otMeshDiagChildIterator * otMeshDiagRouterInfo::mChildIterator
```
A pointer to an iterator to go through the list of children of the router.

The pointer is valid only while `https://openthread.io/reference/struct/ot-mesh-diag-router-info` is valid. It can be used in `otMeshDiagGetNextChildInfo` to iterate through the children of the router.

The pointer can be NULL when there was no request to discover children (in `https://openthread.io/reference/struct/ot-mesh-diag-discover-config`) or if the router did not provide the list.

### mExtAddress

```
otExtAddress otMeshDiagRouterInfo::mExtAddress
```
Extended MAC address.

### mIp6AddrIterator

```
otMeshDiagIp6AddrIterator * otMeshDiagRouterInfo::mIp6AddrIterator
```
A pointer to an iterator to go through the list of IPv6 addresses of the router.

The pointer is valid only while `https://openthread.io/reference/struct/ot-mesh-diag-router-info` is valid. It can be used in `otMeshDiagGetNextIp6Address` to iterate through the IPv6 addresses.

The pointer can be NULL when there was no request to discover IPv6 addresses (in `https://openthread.io/reference/struct/ot-mesh-diag-discover-config`) or if the router did not provide the list.

### mIsBorderRouter

```
bool otMeshDiagRouterInfo::mIsBorderRouter
```
Whether router acts as a border router providing ext connectivity.

### mIsLeader

```
bool otMeshDiagRouterInfo::mIsLeader
```
Whether router is leader.

### mIsThisDevice

```
bool otMeshDiagRouterInfo::mIsThisDevice
```
Whether router is this device itself.

### mIsThisDeviceParent

```
bool otMeshDiagRouterInfo::mIsThisDeviceParent
```
Whether router is parent of this device (when device is a child).

### mLinkQualities

```
uint8_t otMeshDiagRouterInfo::mLinkQualities[OT_NETWORK_MAX_ROUTER_ID+1]
```
Provides the link quality from this router to other routers, also indicating whether a link is established between the routers.

The array is indexed based on Router ID. `mLinkQualities[routerId]` indicates the incoming link quality, the router sees to the router with `routerId`. Link quality is a value in \[0, 3\]. Value zero indicates no link. Larger value indicate better link quality (as defined by Thread specification).

### mRloc16

```
uint16_t otMeshDiagRouterInfo::mRloc16
```
RLOC16.

### mRouterId

```
uint8_t otMeshDiagRouterInfo::mRouterId
```
Router ID.

### mTlvIterator

```
otMeshDiagTlvIterator * otMeshDiagRouterInfo::mTlvIterator
```
A pointer to an iterator to go through the list of extra Network Diagnostic TLVs returned by the router.

The pointer is valid only while `https://openthread.io/reference/struct/ot-mesh-diag-router-info` is valid. It can be used in `otMeshDiagGetNextTlvInfo` to iterate through the extra TLVs returned by the router.

The pointer may be NULL if there are no extra TLVs (in `https://openthread.io/reference/struct/ot-mesh-diag-discover-config`).

### mVersion

```
uint16_t otMeshDiagRouterInfo::mVersion
```
Thread Version. `OT_MESH_DIAG_VERSION_UNKNOWN` if unknown.

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