[netdata] move service ALOC management from MLE module (#11815)

This change moves the service ALOC management logic from the `Mle`
module to `NetworkData::Service::Manager`.

This change simplifies the code by consolidating responsibilities.
Since the `NetworkData::Service` module manages service entries in
the Network Data, it is the logical owner for managing the associated
service ALOCs.
This commit is contained in:
Abtin Keshavarzian
2025-08-13 19:07:59 -07:00
committed by GitHub
parent 562a3d8c73
commit a3cd859502
5 changed files with 133 additions and 125 deletions
+3
View File
@@ -98,6 +98,9 @@ void Notifier::EmitEvents(void)
// Emit events to core internal modules
Get<Mle::Mle>().HandleNotifierEvents(events);
#if OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
Get<NetworkData::Service::Manager>().HandleNotifierEvents(events);
#endif
#if (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2)
Get<BackboneRouter::Leader>().HandleNotifierEvents(events);
#endif