# otHistoryTrackerMessageInfo Struct Reference

# otHistoryTrackerMessageInfo


`#include <openthread/history_tracker.h>`

Represents a RX/TX IPv6 message info.

## Summary

Some of the fields in this struct are applicable to a RX message or a TX message only, e.g., `mAveRxRss` is the average RSS of all fragment frames that form a received message and is only applicable for a RX message.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1abe2896aea03c13efc082979af3160b9e` | `int8_t` RSS of received message or OT_RADIO_INVALID_RSSI if not known. |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1af515328ea2fc62d1fa0a303f37d2575e` | `uint16_t` Message checksum (valid only for UDP/TCP/ICMP6). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a158d0e1ab0b6aa7714cb36d00472d718` | `https://openthread.io/reference/struct/ot-sock-addr` Destination IPv6 address and port (if UDP/TCP). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a4f1d8d3cf77fdfc788823b7787b3db02` | `uint8_t` ICMP6 type if msg is ICMP6, zero otherwise (`OT_ICMP6_TYPE_*` enumeration). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a759404894cd75767f901b5f2be58b7f1` | `uint8_t` IP Protocol number (`OT_IP6_PROTO_*` enumeration). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1ac6105c608e0456293257089382693ff2` | `bool` Indicates whether msg used link security. |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a16cd6dc92b3bd323030dc1e656a5d092` | `uint16_t` RLOC16 of neighbor which sent/received the msg (`0xfffe` if no RLOC16). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1aa1b385246679c18b70835383bd7eaf5d` | `uint16_t` IPv6 payload length (exclude IP6 header itself). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1aaa53804b65f0bd5c1314f3f2710cf706` | `uint8_t` Message priority (`OT_HISTORY_TRACKER_MSG_PRIORITY_*` enumeration). |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1acd5b0bed053e1bcaed57e14827d80e86` | `bool` Indicates whether msg was sent/received over a 15.4 radio link. |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a836ac3b5fd29d0a4ef4ae13ab3f9b046` | `bool` Indicates whether msg was sent/received over a TREL radio link. |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1af92ca77ddf944d89f92cdf1057401c84` | `https://openthread.io/reference/struct/ot-sock-addr` Source IPv6 address and port (if UDP/TCP) |
| `https://openthread.io/reference/struct/ot-history-tracker-message-info#structot_history_tracker_message_info_1a56894cb996cc00afcacc56973e8210b8` | `bool` Indicates TX success (e.g., ack received). Applicable for TX msg only. |

## Public attributes

### mAveRxRss

```
int8_t otHistoryTrackerMessageInfo::mAveRxRss
```
RSS of received message or OT_RADIO_INVALID_RSSI if not known.

### mChecksum

```
uint16_t otHistoryTrackerMessageInfo::mChecksum
```
Message checksum (valid only for UDP/TCP/ICMP6).

### mDestination

```
otSockAddr otHistoryTrackerMessageInfo::mDestination
```
Destination IPv6 address and port (if UDP/TCP).

### mIcmp6Type

```
uint8_t otHistoryTrackerMessageInfo::mIcmp6Type
```
ICMP6 type if msg is ICMP6, zero otherwise (`OT_ICMP6_TYPE_*` enumeration).

### mIpProto

```
uint8_t otHistoryTrackerMessageInfo::mIpProto
```
IP Protocol number (`OT_IP6_PROTO_*` enumeration).

### mLinkSecurity

```
bool otHistoryTrackerMessageInfo::mLinkSecurity
```
Indicates whether msg used link security.

### mNeighborRloc16

```
uint16_t otHistoryTrackerMessageInfo::mNeighborRloc16
```
RLOC16 of neighbor which sent/received the msg (`0xfffe` if no RLOC16).

### mPayloadLength

```
uint16_t otHistoryTrackerMessageInfo::mPayloadLength
```
IPv6 payload length (exclude IP6 header itself).

### mPriority

```
uint8_t otHistoryTrackerMessageInfo::mPriority
```
Message priority (`OT_HISTORY_TRACKER_MSG_PRIORITY_*` enumeration).

### mRadioIeee802154

```
bool otHistoryTrackerMessageInfo::mRadioIeee802154
```
Indicates whether msg was sent/received over a 15.4 radio link.

### mRadioTrelUdp6

```
bool otHistoryTrackerMessageInfo::mRadioTrelUdp6
```
Indicates whether msg was sent/received over a TREL radio link.

### mSource

```
otSockAddr otHistoryTrackerMessageInfo::mSource
```
Source IPv6 address and port (if UDP/TCP)

### mTxSuccess

```
bool otHistoryTrackerMessageInfo::mTxSuccess
```
Indicates TX success (e.g., ack received). Applicable for TX msg only.

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