From bfb60204fcb27dc874685b63049be249ac7ddb08 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 27 May 2022 13:16:23 -0700 Subject: [PATCH] [ndproxy] fix typo `Attampts` -> `Attempts` (#7752) --- src/core/backbone_router/ndproxy_table.cpp | 4 ++-- src/core/backbone_router/ndproxy_table.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/backbone_router/ndproxy_table.cpp b/src/core/backbone_router/ndproxy_table.cpp index 9d6595897..89c044225 100644 --- a/src/core/backbone_router/ndproxy_table.cpp +++ b/src/core/backbone_router/ndproxy_table.cpp @@ -251,7 +251,7 @@ void NdProxyTable::HandleTimer(void) for (NdProxy &proxy : Iterate(kFilterDadInProcess)) { - if (proxy.IsDadAttamptsComplete()) + if (proxy.IsDadAttemptsComplete()) { proxy.mDadFlag = false; NotifyDuaRegistrationOnBackboneLink(proxy, /* aIsRenew */ false); @@ -262,7 +262,7 @@ void NdProxyTable::HandleTimer(void) if (Get().SendBackboneQuery(GetDua(proxy)) == kErrorNone) { - proxy.IncreaseDadAttampts(); + proxy.IncreaseDadAttempts(); } } } diff --git a/src/core/backbone_router/ndproxy_table.hpp b/src/core/backbone_router/ndproxy_table.hpp index b4cf71605..097a6d3a3 100644 --- a/src/core/backbone_router/ndproxy_table.hpp +++ b/src/core/backbone_router/ndproxy_table.hpp @@ -111,8 +111,8 @@ public: uint32_t aTimeSinceLastTransaction); void Update(uint16_t aRloc16, uint32_t aTimeSinceLastTransaction); - void IncreaseDadAttampts(void) { mDadAttempts++; } - bool IsDadAttamptsComplete() const { return mDadAttempts == Mle::kDuaDadRepeats; } + void IncreaseDadAttempts(void) { mDadAttempts++; } + bool IsDadAttemptsComplete() const { return mDadAttempts == Mle::kDuaDadRepeats; } Ip6::InterfaceIdentifier mAddressIid; Ip6::InterfaceIdentifier mMeshLocalIid;