# otNetifAddress Struct Reference

# otNetifAddress


`#include <openthread/ip6.h>`

Represents an IPv6 network interface unicast address.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1af7ae93284e0d8cf84f7fe626107f331c` | `https://openthread.io/reference/struct/ot-ip6-address` The IPv6 unicast address. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1aaddc676b0d4e3a4cc59561cf67350498` | `uint8_t` The IPv6 address origin (OT_ADDRESS_ORIGIN_\* values). |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a5f5f530c871306cfec2538fde1beb75b` | `bool` TRUE if the address is mesh-local, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a6e23ebd60579faeb96aad9d31b963c8e` | `const struct https://openthread.io/reference/struct/ot-netif-address *` A pointer to the next network interface address. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a234f37c483869328a1491f770766b936` | `bool` TRUE if the address is preferred, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a34ba4bb9f7701678558399d5bd2ef69f` | `uint8_t` The Prefix length (in bits). |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1add147629560114319d37f1bc3d0a2298` | `bool` TRUE if the address is an RLOC, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a022f58e53e7d1da6a031d169bf37f58f` | `unsigned int` The IPv6 scope of this address. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a9358b4d0c9b1fa7da31f6246ef0d26b6` | `bool` TRUE if the mScopeOverride value is valid, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a4b6c2e7b57826224c4c1ba9c0015a53e` | `bool` Used by OT core only (indicates whether registered by SRP Client). |
| `https://openthread.io/reference/struct/ot-netif-address#structot_netif_address_1a0b2f2997801fa373bc58274b219ee578` | `bool` TRUE if the address is valid, FALSE otherwise. |

## Public attributes

### mAddress

```
otIp6Address otNetifAddress::mAddress
```
The IPv6 unicast address.

### mAddressOrigin

```
uint8_t otNetifAddress::mAddressOrigin
```
The IPv6 address origin (OT_ADDRESS_ORIGIN_\* values).

### mMeshLocal

```
bool otNetifAddress::mMeshLocal
```
TRUE if the address is mesh-local, FALSE otherwise.

### mNext

```
const struct otNetifAddress * otNetifAddress::mNext
```
A pointer to the next network interface address.

### mPreferred

```
bool otNetifAddress::mPreferred
```
TRUE if the address is preferred, FALSE otherwise.

### mPrefixLength

```
uint8_t otNetifAddress::mPrefixLength
```
The Prefix length (in bits).

### mRloc

```
bool otNetifAddress::mRloc
```
TRUE if the address is an RLOC, FALSE otherwise.

### mScopeOverride

```
unsigned int otNetifAddress::mScopeOverride
```
The IPv6 scope of this address.

### mScopeOverrideValid

```
bool otNetifAddress::mScopeOverrideValid
```
TRUE if the mScopeOverride value is valid, FALSE otherwise.

### mSrpRegistered

```
bool otNetifAddress::mSrpRegistered
```
Used by OT core only (indicates whether registered by SRP Client).

### mValid

```
bool otNetifAddress::mValid
```
TRUE if the address is valid, FALSE otherwise.

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