# otMessageInfo Struct Reference

# otMessageInfo


`#include <openthread/ip6.h>`

Represents the local and peer IPv6 socket addresses.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1abdfa598b0d28eec3c6aa8b1f3eaed874` | `bool` TRUE to allow IPv6 Hop Limit 0 in `mHopLimit`, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a99c52c3f464f7d499fae95ce9f9af523` | `uint8_t` The ECN status of the packet, represented as in the IPv6 header. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a6f2c260a3babcee555f67ac4c5feccc7` | `uint8_t` The IPv6 Hop Limit value. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1ad165305cef8c5beacf57a525bb4a1e5d` | `bool` TRUE if packets sent/received via host interface, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a29c27f7eeece3a916c9e92356fafb3b5` | `bool` TRUE to allow looping back multicast, FALSE otherwise. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a44b97257686b6f5fba5afa13b05cc259` | `https://openthread.io/reference/struct/ot-ip6-address` The peer IPv6 address. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1ac8684bbbf2e414822ccf9b3e5751527b` | `uint16_t` The peer transport-layer port. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a2fcb46a2a2e321c92c519035d72944e4` | `https://openthread.io/reference/struct/ot-ip6-address` The local IPv6 address. |
| `https://openthread.io/reference/struct/ot-message-info#structot_message_info_1a2edb568cfed99202b24d66dfe786552c` | `uint16_t` The local transport-layer port. |

## Public attributes

### mAllowZeroHopLimit

```
bool otMessageInfo::mAllowZeroHopLimit
```
TRUE to allow IPv6 Hop Limit 0 in `mHopLimit`, FALSE otherwise.

### mEcn

```
uint8_t otMessageInfo::mEcn
```
The ECN status of the packet, represented as in the IPv6 header.

### mHopLimit

```
uint8_t otMessageInfo::mHopLimit
```
The IPv6 Hop Limit value.

Only applies if `mAllowZeroHopLimit` is FALSE. If `0`, IPv6 Hop Limit is default value `OPENTHREAD_CONFIG_IP6_HOP_LIMIT_DEFAULT`. Otherwise, specifies the IPv6 Hop Limit.

### mIsHostInterface

```
bool otMessageInfo::mIsHostInterface
```
TRUE if packets sent/received via host interface, FALSE otherwise.

### mMulticastLoop

```
bool otMessageInfo::mMulticastLoop
```
TRUE to allow looping back multicast, FALSE otherwise.

### mPeerAddr

```
otIp6Address otMessageInfo::mPeerAddr
```
The peer IPv6 address.

### mPeerPort

```
uint16_t otMessageInfo::mPeerPort
```
The peer transport-layer port.

### mSockAddr

```
otIp6Address otMessageInfo::mSockAddr
```
The local IPv6 address.

### mSockPort

```
uint16_t otMessageInfo::mSockPort
```
The local transport-layer port.

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