Represents an address mapping record for NAT64.

Note

  • The counters will be reset for each mapping session even for the same address pair. Applications can use mId to identify different sessions to calculate the packets correctly.

Public Attributes#

uint64_t

The unique id for a mapping session.

The IPv4 address of the mapping.

The IPv6 address of the mapping.

uint16_t

The source port or ICMP ID of the mapping.

uint16_t

The translated port or ICMP ID of the mapping.

uint32_t

Remaining time before expiry in milliseconds.

Public Attribute Documentation#

mId#

uint64_t otNat64AddressMapping::mId

The unique id for a mapping session.


mIp4#

otIp4Address otNat64AddressMapping::mIp4

The IPv4 address of the mapping.


mIp6#

otIp6Address otNat64AddressMapping::mIp6

The IPv6 address of the mapping.


mSrcPortOrId#

uint16_t otNat64AddressMapping::mSrcPortOrId

The source port or ICMP ID of the mapping.

Used when OPENTHREAD_CONFIG_NAT64_PORT_TRANSLATION_ENABLE is true.


mTranslatedPortOrId#

uint16_t otNat64AddressMapping::mTranslatedPortOrId

The translated port or ICMP ID of the mapping.

Used when OPENTHREAD_CONFIG_NAT64_PORT_TRANSLATION_ENABLE is true.


mRemainingTimeMs#

uint32_t otNat64AddressMapping::mRemainingTimeMs

Remaining time before expiry in milliseconds.


mCounters#

otNat64ProtocolCounters otNat64AddressMapping::mCounters