# otIp6Prefix Struct Reference

# otIp6Prefix


`#include <openthread/ip6.h>`

Represents an IPv6 prefix.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-ip6-prefix#structot_ip6_prefix_1a4d4c2fecf041ebc7213e474381c49ebf` | `uint8_t` The IPv6 prefix length (in bits). |
| `https://openthread.io/reference/struct/ot-ip6-prefix#structot_ip6_prefix_1ad1f373d25097034f9d36631a1cffd30d` | `https://openthread.io/reference/struct/ot-ip6-address` The IPv6 prefix. |

## Public attributes

### mLength

```
uint8_t otIp6Prefix::mLength
```
The IPv6 prefix length (in bits).

### mPrefix

```
otIp6Address otIp6Prefix::mPrefix
```
The IPv6 prefix.

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