diff --git a/include/openthread/instance.h b/include/openthread/instance.h index 0b47bbe99..9a61d372b 100644 --- a/include/openthread/instance.h +++ b/include/openthread/instance.h @@ -53,7 +53,7 @@ extern "C" { * @note This number versions both OpenThread platform and user APIs. * */ -#define OPENTHREAD_API_VERSION (246) +#define OPENTHREAD_API_VERSION (247) /** * @addtogroup api-instance diff --git a/include/openthread/nat64.h b/include/openthread/nat64.h index 09a26b87c..73860fc8a 100644 --- a/include/openthread/nat64.h +++ b/include/openthread/nat64.h @@ -408,7 +408,7 @@ otError otIp4AddressFromString(const char *aString, otIp4Address *aAddress); * @returns OT_ERROR_INVALID_STATE No valid NAT64 prefix in the network data. * */ -otError otNat64SynthersizeIp6Address(otInstance *aInstance, const otIp4Address *aIp4Address, otIp6Address *aIp6Address); +otError otNat64SynthesizeIp6Address(otInstance *aInstance, const otIp4Address *aIp4Address, otIp6Address *aIp6Address); /** * @} diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index e1f84c040..d11f728ed 100644 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -472,7 +472,7 @@ otError Interpreter::ParseToIp6Address(otInstance * aInstance, // Do not touch the error value if we failed to parse it as an IPv4 address. SuccessOrExit(aArg.ParseAsIp4Address(ip4Address)); - SuccessOrExit(error = otNat64SynthersizeIp6Address(aInstance, &ip4Address, &aAddress)); + SuccessOrExit(error = otNat64SynthesizeIp6Address(aInstance, &ip4Address, &aAddress)); aSynthesized = true; } diff --git a/src/cli/cli.hpp b/src/cli/cli.hpp index afc40a85e..8c51cd0e9 100644 --- a/src/cli/cli.hpp +++ b/src/cli/cli.hpp @@ -238,7 +238,7 @@ public: /** * This method parses the argument as an IP address. * - * If the argument string is an IPv4 address, this method will try to synthersize an IPv6 address using preferred + * If the argument string is an IPv4 address, this method will try to synthesize an IPv6 address using preferred * NAT64 prefix in the network data. * * @param[in] aInstance A pointer to openthread instance. diff --git a/src/core/api/nat64_api.cpp b/src/core/api/nat64_api.cpp index 5e16c284d..c64e3ff35 100644 --- a/src/core/api/nat64_api.cpp +++ b/src/core/api/nat64_api.cpp @@ -116,7 +116,7 @@ otError otIp4AddressFromString(const char *aString, otIp4Address *aAddress) return AsCoreType(aAddress).FromString(aString); } -otError otNat64SynthersizeIp6Address(otInstance *aInstance, const otIp4Address *aIp4Address, otIp6Address *aIp6Address) +otError otNat64SynthesizeIp6Address(otInstance *aInstance, const otIp4Address *aIp4Address, otIp6Address *aIp6Address) { otError err = OT_ERROR_NONE; NetworkData::ExternalRouteConfig nat64Prefix;