# otPacketsAndBytes Struct Reference

# otPacketsAndBytes


`#include <openthread/ip6.h>`

Represents the counters for packets and bytes.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-packets-and-bytes#structot_packets_and_bytes_1a26c7bb469fe7db0309425c156b9a9802` | `uint64_t` The number of bytes. |
| `https://openthread.io/reference/struct/ot-packets-and-bytes#structot_packets_and_bytes_1a1d77dbeab3dbbca302b7fcd484bcff39` | `uint64_t` The number of packets. |

## Public attributes

### mBytes

```
uint64_t otPacketsAndBytes::mBytes
```
The number of bytes.

### mPackets

```
uint64_t otPacketsAndBytes::mPackets
```
The number of packets.

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