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
mIdto identify different sessions to calculate the packets correctly.
Public Attributes#
The unique id for a mapping session.
The IPv4 address of the mapping.
The IPv6 address of the mapping.
The source port or ICMP ID of the mapping.
The translated port or ICMP ID of the mapping.
Remaining time in milliseconds before the entry expires.
Counters.
Public Attribute Documentation#
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 in milliseconds before the entry expires.
The remaining time is relative to the initialization of the otNat64AddressMappingIterator, i.e., when otNat64InitAddressMappingIterator() was called.