# otBorderAgentTrackerAgentInfo Struct Reference

# otBorderAgentTrackerAgentInfo


`#include <openthread/border_agent_tracker.h>`

Represents information about a discovered Border Agent.

## Summary

To ensure consistent `mMsecSinceDiscovered` and `mMsecSinceLastChange` time calculations, the iterator's initialization time is stored within the iterator when `https://openthread.io/reference/group/api-border-agent-tracker#group__api-border-agent-tracker_1ga2dcb1a2193003f096e571cce8f2efc16` is called. The time values in this struct are calculated relative to the iterator's initialization time.

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1aabbdcba394804b0d53ac61f4f9e35c7e` | `const https://openthread.io/reference/struct/ot-ip6-address *` Array of IPv6 addresses of the host. May be NULL if not known yet. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1a55c69f89dfe46cd6c7df4f5f9b3a077f` | `const char *` The host name. May be NULL if not known yet. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1aa36fb267da717023394f623dfcb63eeb` | `uint64_t` Milliseconds since the service was discovered. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1ac5d78fc52986bb4b291e33e32f931c50` | `uint64_t` Milliseconds since the last change (port, TXT, or addresses). |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1aa4fd2109984d76e05176c1d1c601ad8c` | `uint16_t` Number of addresses in the `mAddresses` array. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1a6d64da0881afced0f03019f168f20080` | `uint16_t` The port number. Can be zero if not known yet. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1aca1f47081d3c99b477f02fcd83926144` | `const char *` The service name. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1a5073b6a2194582f9e06dad06bdaab92a` | `const uint8_t *` The TXT data. May be NULL if not known yet. |
| `https://openthread.io/reference/struct/ot-border-agent-tracker-agent-info#structot_border_agent_tracker_agent_info_1a952646b78912e35dae1efcc1f48e36d7` | `uint16_t` The TXT data length. |

## Public attributes

### mAddresses

```
const otIp6Address * otBorderAgentTrackerAgentInfo::mAddresses
```
Array of IPv6 addresses of the host. May be NULL if not known yet.

### mHostName

```
const char * otBorderAgentTrackerAgentInfo::mHostName
```
The host name. May be NULL if not known yet.

### mMsecSinceDiscovered

```
uint64_t otBorderAgentTrackerAgentInfo::mMsecSinceDiscovered
```
Milliseconds since the service was discovered.

### mMsecSinceLastChange

```
uint64_t otBorderAgentTrackerAgentInfo::mMsecSinceLastChange
```
Milliseconds since the last change (port, TXT, or addresses).

### mNumAddresses

```
uint16_t otBorderAgentTrackerAgentInfo::mNumAddresses
```
Number of addresses in the `mAddresses` array.

### mPort

```
uint16_t otBorderAgentTrackerAgentInfo::mPort
```
The port number. Can be zero if not known yet.

### mServiceName

```
const char * otBorderAgentTrackerAgentInfo::mServiceName
```
The service name.

### mTxtData

```
const uint8_t * otBorderAgentTrackerAgentInfo::mTxtData
```
The TXT data. May be NULL if not known yet.

### mTxtDataLength

```
uint16_t otBorderAgentTrackerAgentInfo::mTxtDataLength
```
The TXT data length.

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