Finding out the advertised NAT64 prefix on an end device. #8335
-
Hi, My end device displays a NAT64 prefix with Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
NAT64 prefixes configured on the Thread network are published in Thread network data. Note that there may be one or more NAT64 prefixes configured. Use The CLI implementation of |
Beta Was this translation helpful? Give feedback.
-
@YSLew-tado Also trying to figure out the NAT64 prefix. Could you provide me with an example |
Beta Was this translation helpful? Give feedback.
NAT64 prefixes configured on the Thread network are published in Thread network data. Note that there may be one or more NAT64 prefixes configured.
Use
otNetDataGetNextRoute()
to iterate through the routes published in Thread network data. TheotExternalRouteConfig
structure indicates whether the route is a NAT64 prefix.The CLI implementation of
netdata show
provides an example of how to use these APIs: https://github.com/openthread/openthread/blob/main/src/cli/cli_network_data.cpp#L503