mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
b72d7144ee
This commit renames the static helper `Utils::ParseToIp6Address()` to `Utils::ParseOrSynthesizeIp6Address()` to better reflect its behavior of parsing an IPv6 address or synthesizing one from an IPv4 address via NAT64. Additionally, the method is refactored into a non-static member of the `Utils` class. This eliminates the need to manually pass the `otInstance` pointer, as the `Utils` class already maintains it. The internal implementation is also simplified to reduce nesting by exiting early upon successful IPv6 address parsing. All callers in the CLI module (TCP, UDP, Ping, DNS) have been updated to use the new member method.