# otNetworkDiagMacCounters Struct Reference

# otNetworkDiagMacCounters


`#include <openthread/netdiag.h>`

Represents a Network Diagnostic Mac Counters value.

## Summary

See [RFC 2863](https://www.ietf.org/rfc/rfc2863) for definitions of member fields.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a397911de49ce74d8a40d66211c8d014e` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1ad95a8a37675a299461be431d8542ac1d` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a361ead4a203f20896e0232cf723a1005` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a3acb2b197d42a5898186264dfcea0ee3` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a50262a2326c005cf12b94bf130264484` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a73fbbc8abc97836a4952b68710e023f1` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a02d7898633134297431bf9bc3198f954` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a665ead9ca3f86dd836f8a0c9de2d0eb7` | `uint32_t` |
| `https://openthread.io/reference/struct/ot-network-diag-mac-counters#structot_network_diag_mac_counters_1a4e527016aa42b722b75ecc9d60cc5deb` | `uint32_t` |

## Public attributes

### mIfInBroadcastPkts

```
uint32_t otNetworkDiagMacCounters::mIfInBroadcastPkts
```

### mIfInDiscards

```
uint32_t otNetworkDiagMacCounters::mIfInDiscards
```

### mIfInErrors

```
uint32_t otNetworkDiagMacCounters::mIfInErrors
```

### mIfInUcastPkts

```
uint32_t otNetworkDiagMacCounters::mIfInUcastPkts
```

### mIfInUnknownProtos

```
uint32_t otNetworkDiagMacCounters::mIfInUnknownProtos
```

### mIfOutBroadcastPkts

```
uint32_t otNetworkDiagMacCounters::mIfOutBroadcastPkts
```

### mIfOutDiscards

```
uint32_t otNetworkDiagMacCounters::mIfOutDiscards
```

### mIfOutErrors

```
uint32_t otNetworkDiagMacCounters::mIfOutErrors
```

### mIfOutUcastPkts

```
uint32_t otNetworkDiagMacCounters::mIfOutUcastPkts
```

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