# otNeighborInfo Struct Reference

# otNeighborInfo


`#include <openthread/thread.h>`

Holds diagnostic information for a neighboring Thread node.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a6e280b2812fb5a4889a6926ff40ecea5` | `uint32_t` Seconds since last heard. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1aeecbac9c248eb4098fd28627b30de5f5` | `int8_t` Average RSSI. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a41b254cb56ab00d262356cde8f4db2c9` | `uint32_t` Seconds since link establishment (requires `CONFIG_UPTIME_ENABLE`) |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1af61ce69c2fdf27ceaf4a173e00d7bf8a` | `https://openthread.io/reference/struct/ot-ext-address` IEEE 802.15.4 Extended Address. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a98814b49467b869ff4a15bba5c1d9ca2` | `uint16_t` Frame error rate (0xffff-\>100%). Requires error tracking feature. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a9be33bcb96d3831f258330e10fb757e8` | `bool` Full Network Data. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1ac9e674868210dd7225ec4dc46ace8ab4` | `bool` Full Thread Device. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a318d04ceb7da01ecff4f1aad4066a211` | `bool` Is the neighbor a child. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a41e4db04193b86a895377b46986a4685` | `int8_t` Last observed RSSI. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a66249b4f8e7f4f87393388a0a659aeae` | `uint32_t` Link Frame Counter. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a41aa40e64e1a6e8119f2683f2777e033` | `uint8_t` Link Margin. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1ad6bb40fa4e2a379f2c0dbf0e6cdfb3b9` | `uint8_t` Link Quality In. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1ae5068117fef0dad85df2964f78ec69bf` | `uint16_t` (IPv6) msg error rate (0xffff-\>100%). Requires error tracking feature. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1a2f52bf2f1d06fd953ac90af999cb7a11` | `uint32_t` MLE Frame Counter. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1adcd850f50c5c410b25c2e9fa156d2257` | `uint16_t` RLOC16. |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1ab5e8a56565763a90141bdd228bedb2d9` | `bool` rx-on-when-idle |
| `https://openthread.io/reference/struct/ot-neighbor-info#structot_neighbor_info_1aae92a6623fa28f21f6c8759d017ae0e9` | `uint16_t` Thread version of the neighbor. |

## Public attributes

### mAge

```
uint32_t otNeighborInfo::mAge
```
Seconds since last heard.

### mAverageRssi

```
int8_t otNeighborInfo::mAverageRssi
```
Average RSSI.

### mConnectionTime

```
uint32_t otNeighborInfo::mConnectionTime
```
Seconds since link establishment (requires `CONFIG_UPTIME_ENABLE`)

### mExtAddress

```
otExtAddress otNeighborInfo::mExtAddress
```
IEEE 802.15.4 Extended Address.

### mFrameErrorRate

```
uint16_t otNeighborInfo::mFrameErrorRate
```
Frame error rate (0xffff-\>100%). Requires error tracking feature.

### mFullNetworkData

```
bool otNeighborInfo::mFullNetworkData
```
Full Network Data.

### mFullThreadDevice

```
bool otNeighborInfo::mFullThreadDevice
```
Full Thread Device.

### mIsChild

```
bool otNeighborInfo::mIsChild
```
Is the neighbor a child.

### mLastRssi

```
int8_t otNeighborInfo::mLastRssi
```
Last observed RSSI.

### mLinkFrameCounter

```
uint32_t otNeighborInfo::mLinkFrameCounter
```
Link Frame Counter.

### mLinkMargin

```
uint8_t otNeighborInfo::mLinkMargin
```
Link Margin.

### mLinkQualityIn

```
uint8_t otNeighborInfo::mLinkQualityIn
```
Link Quality In.

### mMessageErrorRate

```
uint16_t otNeighborInfo::mMessageErrorRate
```
(IPv6) msg error rate (0xffff-\>100%). Requires error tracking feature.

### mMleFrameCounter

```
uint32_t otNeighborInfo::mMleFrameCounter
```
MLE Frame Counter.

### mRloc16

```
uint16_t otNeighborInfo::mRloc16
```
RLOC16.

### mRxOnWhenIdle

```
bool otNeighborInfo::mRxOnWhenIdle
```
rx-on-when-idle

### mVersion

```
uint16_t otNeighborInfo::mVersion
```
Thread version of the neighbor.

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