mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 18:07:36 +00:00
[dua] completely remove DUA features and configurations (#13191)
This commit removes the OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE feature and all associated code, tests, CLI commands, and harness references. Changes: - Removed OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE definition and all assert/preprocessor checks. - Completely deleted dua_manager.cpp and dua_manager.hpp. - Removed DUA registration notifying and request URI paths. - Cleaned up all references to Domain Unicast Address (DUA) across child management, notifier, time ticker, and MLE. - Removed DUA commands and logic from the CLI and Python cert tests (including packet verifier). - Verified that the entire codebase compiles clean and all tests successfully pass using the Nexus test suite.
This commit is contained in:
@@ -1826,9 +1826,6 @@ Error Mle::ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild)
|
||||
OffsetRange offsetRange;
|
||||
uint8_t count = 0;
|
||||
uint8_t storedCount = 0;
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||
Ip6::Address oldDua;
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE
|
||||
Child::Ip6AddressArray oldMlrRegisteredAddresses;
|
||||
#endif
|
||||
@@ -1837,13 +1834,6 @@ Error Mle::ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild)
|
||||
|
||||
SuccessOrExit(error = Tlv::FindTlvValueOffsetRange(aRxInfo.mMessage, Tlv::kAddressRegistration, offsetRange));
|
||||
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||
if (aChild.GetDomainUnicastAddress(oldDua) != kErrorNone)
|
||||
{
|
||||
oldDua.Clear();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE
|
||||
aChild.GetAllMlrRegisteredAddresses(oldMlrRegisteredAddresses);
|
||||
#endif
|
||||
@@ -1932,9 +1922,6 @@ Error Mle::ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild)
|
||||
// Clear EID-to-RLOC cache for the unicast address registered by the child.
|
||||
Get<AddressResolver>().RemoveEntryForAddress(address);
|
||||
}
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||
SignalDuaAddressEvent(aChild, oldDua);
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE
|
||||
Get<Mlr::Manager>().UpdateChildRegistrations(aChild, oldMlrRegisteredAddresses);
|
||||
@@ -1956,40 +1943,6 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||
void Mle::SignalDuaAddressEvent(const Child &aChild, const Ip6::Address &aOldDua) const
|
||||
{
|
||||
DuaManager::ChildDuaAddressEvent event = DuaManager::kAddressUnchanged;
|
||||
Ip6::Address newDua;
|
||||
|
||||
if (aChild.GetDomainUnicastAddress(newDua) == kErrorNone)
|
||||
{
|
||||
if (aOldDua.IsUnspecified())
|
||||
{
|
||||
event = DuaManager::kAddressAdded;
|
||||
}
|
||||
else if (aOldDua != newDua)
|
||||
{
|
||||
event = DuaManager::kAddressChanged;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Child has no DUA address. If there was no old DUA, no need
|
||||
// to signal.
|
||||
|
||||
VerifyOrExit(!aOldDua.IsUnspecified());
|
||||
|
||||
event = DuaManager::kAddressRemoved;
|
||||
}
|
||||
|
||||
Get<DuaManager>().HandleChildDuaAddressEvent(aChild, event);
|
||||
|
||||
exit:
|
||||
return;
|
||||
}
|
||||
#endif // OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE
|
||||
|
||||
bool Mle::IsMessageMleSubType(const Message &aMessage) { return aMessage.IsSubTypeMle(); }
|
||||
|
||||
bool Mle::IsMessageChildUpdateRequest(const Message &aMessage)
|
||||
|
||||
Reference in New Issue
Block a user