Represents a TREL peer info discovered using DNS-SD browse on the service name "_trel._udp".

Public Attributes#

bool

This boolean flag indicates whether the entry is being removed or added.

const uint8_t *

The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance.

uint16_t

Number of bytes in mTxtData buffer.

The TREL peer socket address (IPv6 address and port number).

Public Attribute Documentation#

mRemoved#

bool otPlatTrelPeerInfo::mRemoved

This boolean flag indicates whether the entry is being removed or added.

  • TRUE indicates that peer is removed.

  • FALSE indicates that it is a new entry or an update to an existing entry.


Definition at line 107 of file include/openthread/platform/trel.h

mTxtData#

const uint8_t* otPlatTrelPeerInfo::mTxtData

The TXT record data (encoded as specified by DNS-SD) from the SRV record of the discovered TREL peer service instance.


Definition at line 113 of file include/openthread/platform/trel.h

mTxtLength#

uint16_t otPlatTrelPeerInfo::mTxtLength

Number of bytes in mTxtData buffer.


Definition at line 115 of file include/openthread/platform/trel.h

mSockAddr#

otSockAddr otPlatTrelPeerInfo::mSockAddr

The TREL peer socket address (IPv6 address and port number).

The port number is determined from the SRV record of the discovered TREL peer service instance. The IPv6 address is determined from the DNS-SD query for AAAA records on the hostname indicated in the SRV record of the discovered service instance. If multiple host IPv6 addressees are discovered, one with highest scope is used.


Definition at line 124 of file include/openthread/platform/trel.h