Skip to content

Finding out the advertised NAT64 prefix on an end device. #8335

Closed Answered by jwhui
YSLew-tado asked this question in Q&A
Discussion options

You must be logged in to vote

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. The otExternalRouteConfig 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

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@YSLew-tado
Comment options

Answer selected by YSLew-tado
Comment options

You must be logged in to vote
2 replies
@jwhui
Comment options

@Zepperoni
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants