# otIcmp6Header Struct Reference

# otIcmp6Header


`#include <openthread/icmp6.h>`

Represents an ICMPv6 header.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-icmp6-header#structot_icmp6_header_1ab662452242fdaa6fb6abf12cdc7b318b` | `uint16_t` Checksum. |
| `https://openthread.io/reference/struct/ot-icmp6-header#structot_icmp6_header_1aa984e3068128d0f7d7ce6d3738690007` | `uint8_t` Code. |
| `https://openthread.io/reference/struct/ot-icmp6-header#structot_icmp6_header_1afff8a16dc48ee30470f3f837da241a0d` | `union https://openthread.io/reference/union/ot-icmp6-header/o-t-t-o-o-l-p-a-c-k-e-d-f-i-e-l-d` Message-specific data. |
| `https://openthread.io/reference/struct/ot-icmp6-header#structot_icmp6_header_1aaf460d61f7c81b95331fe9c289e48cbe` | `uint8_t` Type. |

| ### Unions ||
|---|---|
| [otIcmp6Header::OT_TOOL_PACKED_FIELD](https://openthread.io/reference/union/ot-icmp6-header/o-t-t-o-o-l-p-a-c-k-e-d-f-i-e-l-d) |   |

## Public attributes

### mChecksum

```
uint16_t otIcmp6Header::mChecksum
```
Checksum.

### mCode

```
uint8_t otIcmp6Header::mCode
```
Code.

### mData

```
union otIcmp6Header::OT_TOOL_PACKED_FIELD otIcmp6Header::mData
```
Message-specific data.

### mType

```
uint8_t otIcmp6Header::mType
```
Type.

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