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