Home
last modified time | relevance | path

Searched refs:NetworkData (Results 1 – 25 of 86) sorted by relevance

1234

/openthread-3.7.0/src/core/api/
Dnetdata_publisher_api.cpp49 … AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceAnycast(aSequenceNumber); in otNetDataPublishDnsSrpServiceAnycast()
54 …AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(AsCoreType(aAddres… in otNetDataPublishDnsSrpServiceUnicast()
59 AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishDnsSrpServiceUnicast(aPort); in otNetDataPublishDnsSrpServiceUnicastMeshLocalEid()
64 return AsCoreType(aInstance).Get<NetworkData::Publisher>().IsDnsSrpServiceAdded(); in otNetDataIsDnsSrpServiceAdded()
71 … AsCoreType(aInstance).Get<NetworkData::Publisher>().SetDnsSrpServiceCallback(aCallback, aContext); in otNetDataSetDnsSrpServicePublisherCallback()
76 AsCoreType(aInstance).Get<NetworkData::Publisher>().UnpublishDnsSrpService(); in otNetDataUnpublishDnsSrpService()
85 …return AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishOnMeshPrefix(AsCoreType(aConfig), in otNetDataPublishOnMeshPrefix()
86NetworkData::Publisher::kFromUser); in otNetDataPublishOnMeshPrefix()
91 …return AsCoreType(aInstance).Get<NetworkData::Publisher>().PublishExternalRoute(AsCoreType(aConfig… in otNetDataPublishExternalRoute()
92NetworkData::Publisher::kFromUser); in otNetDataPublishExternalRoute()
[all …]
Dnetdata_api.cpp48 return AsCoreType(aInstance).Get<NetworkData::Leader>().CopyNetworkData( in otNetDataGet()
49 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otNetDataGet()
54 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetLength(); in otNetDataGetLength()
59 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetMaxLength(); in otNetDataGetMaxLength()
64 AsCoreType(aInstance).Get<NetworkData::Leader>().ResetMaxLength(); in otNetDataResetMaxLength()
73 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextOnMeshPrefix(*aIterator, AsCoreType… in otNetDataGetNextOnMeshPrefix()
79 return AsCoreType(aInstance).Get<NetworkData::Leader>().ContainsOmrPrefix(AsCoreType(aPrefix)); in otNetDataContainsOmrPrefix()
87 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextExternalRoute(*aIterator, AsCoreTyp… in otNetDataGetNextRoute()
94 …return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextService(*aIterator, AsCoreType(aCon… in otNetDataGetNextService()
103 return AsCoreType(aInstance).Get<NetworkData::Leader>().GetNextLowpanContextInfo(*aIterator, in otNetDataGetNextLowpanContextInfo()
[all …]
Dserver_api.cpp47 return AsCoreType(aInstance).Get<NetworkData::Local>().CopyNetworkData( in otServerGetNetDataLocal()
48 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otServerGetNetDataLocal()
53 NetworkData::ServiceData serviceData; in otServerAddService()
54 NetworkData::ServerData serverData; in otServerAddService()
59 …return AsCoreType(aInstance).Get<NetworkData::Local>().AddService(aConfig->mEnterpriseNumber, serv… in otServerAddService()
68 NetworkData::ServiceData serviceData; in otServerRemoveService()
72 …return AsCoreType(aInstance).Get<NetworkData::Local>().RemoveService(aEnterpriseNumber, serviceDat… in otServerRemoveService()
81 …error = AsCoreType(aInstance).Get<NetworkData::Local>().GetNextService(*aIterator, AsCoreType(aCon… in otServerGetNextService()
89 AsCoreType(aInstance).Get<NetworkData::Notifier>().HandleServerDataUpdated(); in otServerRegister()
Dborder_router_api.cpp48 return AsCoreType(aInstance).Get<NetworkData::Local>().CopyNetworkData( in otBorderRouterGetNetData()
49 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otBorderRouterGetNetData()
64 … error = AsCoreType(aInstance).Get<NetworkData::Local>().AddOnMeshPrefix(AsCoreType(aConfig)); in otBorderRouterAddOnMeshPrefix()
80 … error = AsCoreType(aInstance).Get<NetworkData::Local>().RemoveOnMeshPrefix(AsCoreType(aPrefix)); in otBorderRouterRemoveOnMeshPrefix()
92 …return AsCoreType(aInstance).Get<NetworkData::Local>().GetNextOnMeshPrefix(*aIterator, AsCoreType(… in otBorderRouterGetNextOnMeshPrefix()
97 return AsCoreType(aInstance).Get<NetworkData::Local>().AddHasRoutePrefix(AsCoreType(aConfig)); in otBorderRouterAddRoute()
102 … return AsCoreType(aInstance).Get<NetworkData::Local>().RemoveHasRoutePrefix(AsCoreType(aPrefix)); in otBorderRouterRemoveRoute()
111 …return AsCoreType(aInstance).Get<NetworkData::Local>().GetNextExternalRoute(*aIterator, AsCoreType… in otBorderRouterGetNextRoute()
116 AsCoreType(aInstance).Get<NetworkData::Notifier>().HandleServerDataUpdated(); in otBorderRouterRegister()
126 AsCoreType(aInstance).Get<NetworkData::Notifier>().SetNetDataFullCallback(aCallback, aContext); in otBorderRouterSetNetDataFullCallback()
/openthread-3.7.0/src/core/net/
Dnd_agent.cpp52 NetworkData::Iterator iterator; in UpdateService()
53 NetworkData::OnMeshPrefixConfig config; in UpdateService()
62 iterator = NetworkData::kIteratorInit; in UpdateService()
64 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
71 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
91 iterator = NetworkData::kIteratorInit; in UpdateService()
93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
100 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
Dnd6.cpp120 …mResvdPrf |= (NetworkData::RoutePreferenceToValue(aPreference) << kPreferenceOffset) & kPreference… in SetPreference()
125 … return NetworkData::RoutePreferenceFromValue((mResvdPrf & kPreferenceMask) >> kPreferenceOffset); in GetPreference()
141 NetworkData::IsRoutePreferenceValid(GetPreference()); in IsValid()
200 return NetworkData::RoutePreferenceFromValue((mFlags & kPreferenceMask) >> kPreferenceOffset); in GetDefaultRouterPreference()
206 …mFlags |= (NetworkData::RoutePreferenceToValue(aPreference) << kPreferenceOffset) & kPreferenceMas… in SetDefaultRouterPreference()
Ddhcp6_server.cpp66 NetworkData::Iterator iterator; in UpdateService()
67 NetworkData::OnMeshPrefixConfig config; in UpdateService()
80 iterator = NetworkData::kIteratorInit; in UpdateService()
82 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
89 … error = Get<NetworkData::Leader>().GetContext(prefixAgent.GetPrefixAsAddress(), lowpanContext); in UpdateService()
108 iterator = NetworkData::kIteratorInit; in UpdateService()
110 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
117 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
/openthread-3.7.0/src/core/thread/
Dnetwork_data_types.hpp54 namespace NetworkData { namespace
62 class NetworkData;
199 friend class NetworkData;
260 friend class NetworkData;
319 friend class NetworkData;
357 friend class NetworkData;
433 DefineCoreType(otBorderRouterConfig, NetworkData::OnMeshPrefixConfig);
434 DefineCoreType(otExternalRouteConfig, NetworkData::ExternalRouteConfig);
435 DefineCoreType(otLowpanContextInfo, NetworkData::LowpanContextInfo);
436 DefineCoreType(otServiceConfig, NetworkData::ServiceConfig);
[all …]
Dnetwork_data.cpp49 namespace NetworkData { namespace
56 Error NetworkData::CopyNetworkData(Type aType, uint8_t *aData, uint8_t &aDataLength) const in CopyNetworkData()
68 Error NetworkData::CopyNetworkData(Type aType, MutableNetworkData &aNetworkData) const in CopyNetworkData()
86 Error NetworkData::GetNextOnMeshPrefix(Iterator &aIterator, OnMeshPrefixConfig &aConfig) const in GetNextOnMeshPrefix()
91 Error NetworkData::GetNextOnMeshPrefix(Iterator &aIterator, uint16_t aRloc16, OnMeshPrefixConfig &a… in GetNextOnMeshPrefix()
103 Error NetworkData::GetNextExternalRoute(Iterator &aIterator, ExternalRouteConfig &aConfig) const in GetNextExternalRoute()
108 Error NetworkData::GetNextExternalRoute(Iterator &aIterator, uint16_t aRloc16, ExternalRouteConfig … in GetNextExternalRoute()
120 Error NetworkData::GetNextService(Iterator &aIterator, ServiceConfig &aConfig) const in GetNextService()
125 Error NetworkData::GetNextService(Iterator &aIterator, uint16_t aRloc16, ServiceConfig &aConfig) co… in GetNextService()
137 Error NetworkData::GetNextLowpanContextInfo(Iterator &aIterator, LowpanContextInfo &aContextInfo) c… in GetNextLowpanContextInfo()
[all …]
Dnetwork_data.hpp79 namespace NetworkData { namespace
111 class NetworkData : public InstanceLocator class
129 explicit NetworkData(Instance &aInstance, const uint8_t *aTlvs = nullptr, uint8_t aLength = 0) in NetworkData() function in ot::NetworkData::NetworkData
144 NetworkData(Instance &aInstance, const NetworkDataTlv *aStartTlv, const NetworkDataTlv *aEndTlv) in NetworkData() function in ot::NetworkData::NetworkData
325 bool ContainsEntriesFrom(const NetworkData &aCompare, uint16_t aRloc16) const;
592 class MutableNetworkData : public NetworkData
594 friend class NetworkData;
609 : NetworkData(aInstance, aTlvs, aLength) in MutableNetworkData()
614 using NetworkData::GetBytes;
615 using NetworkData::GetLength;
[all …]
Dnetwork_data_notifier.hpp51 namespace NetworkData { namespace
53 class NetworkData;
131 … Error SendServerDataNotification(uint16_t aOldRloc16, const NetworkData *aNetworkData = nullptr);
Dmle_types.hpp249 NetworkData::Type GetNetworkDataType(void) const in GetNetworkDataType()
251 return (mMode & kModeFullNetworkData) ? NetworkData::kFullSet : NetworkData::kStableSubset; in GetNetworkDataType()
398 uint8_t GetDataVersion(NetworkData::Type aType) const in GetDataVersion()
400 return (aType == NetworkData::kFullSet) ? mDataVersion : mStableDataVersion; in GetDataVersion()
/openthread-3.7.0/src/cli/
Dcli_network_data.cpp46 NetworkData::NetworkData(otInstance *aInstance, OutputImplementer &aOutputImplementer) in NetworkData() function in ot::Cli::NetworkData
55 void NetworkData::PrefixFlagsToString(const otBorderRouterConfig &aConfig, FlagsString &aString) in PrefixFlagsToString()
107 void NetworkData::OutputPrefix(const otBorderRouterConfig &aConfig) in OutputPrefix()
123 void NetworkData::RouteFlagsToString(const otExternalRouteConfig &aConfig, FlagsString &aString) in RouteFlagsToString()
145 void NetworkData::OutputRoute(const otExternalRouteConfig &aConfig) in OutputRoute()
161 void NetworkData::OutputService(const otServiceConfig &aConfig) in OutputService()
186 template <> otError NetworkData::Process<Cmd("length")>(Arg aArgs[]) in Process()
197 template <> otError NetworkData::Process<Cmd("maxlength")>(Arg aArgs[]) in Process()
237 template <> otError NetworkData::Process<Cmd("publish")>(Arg aArgs[]) in Process()
402 template <> otError NetworkData::Process<Cmd("unpublish")>(Arg aArgs[]) in Process()
[all …]
Dcli_network_data.hpp50 class NetworkData : private Utils class
72 NetworkData(otInstance *aInstance, OutputImplementer &aOutputImplementer);
131 using Command = CommandEntry<NetworkData>;
145 …static void HandleNetdataFull(void *aContext) { static_cast<NetworkData *>(aContext)->HandleNetdat… in HandleNetdataFull()
/openthread-3.7.0/src/core/utils/
Dslaac_address.cpp127 bool Slaac::IsSlaac(const NetworkData::OnMeshPrefixConfig &aConfig) const in IsSlaac()
132 bool Slaac::IsFiltered(const NetworkData::OnMeshPrefixConfig &aConfig) const in IsFiltered()
166 bool Slaac::DoesConfigMatchNetifAddr(const NetworkData::OnMeshPrefixConfig &aConfig, in DoesConfigMatchNetifAddr()
181 NetworkData::Iterator iterator; in RemoveOrDeprecateAddresses()
182 NetworkData::OnMeshPrefixConfig config; in RemoveOrDeprecateAddresses()
190 iterator = NetworkData::kIteratorInit; in RemoveOrDeprecateAddresses()
192 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in RemoveOrDeprecateAddresses()
253 NetworkData::Iterator iterator; in AddAddresses()
254 NetworkData::OnMeshPrefixConfig config; in AddAddresses()
258 iterator = NetworkData::kIteratorInit; in AddAddresses()
[all …]
Dhistory_tracker.cpp359 NetworkData::Iterator iterator; in RecordNetworkDataChange()
360 NetworkData::OnMeshPrefixConfig prefix; in RecordNetworkDataChange()
361 NetworkData::ExternalRouteConfig route; in RecordNetworkDataChange()
365 iterator = NetworkData::kIteratorInit; in RecordNetworkDataChange()
369 if (!Get<NetworkData::Leader>().ContainsOnMeshPrefix(prefix)) in RecordNetworkDataChange()
375 iterator = NetworkData::kIteratorInit; in RecordNetworkDataChange()
377 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, prefix) == kErrorNone) in RecordNetworkDataChange()
387 iterator = NetworkData::kIteratorInit; in RecordNetworkDataChange()
391 if (!Get<NetworkData::Leader>().ContainsExternalRoute(route)) in RecordNetworkDataChange()
397 iterator = NetworkData::kIteratorInit; in RecordNetworkDataChange()
[all …]
Dslaac_address.hpp204 bool IsSlaac(const NetworkData::OnMeshPrefixConfig &aConfig) const;
205 bool IsFiltered(const NetworkData::OnMeshPrefixConfig &aConfig) const;
211 void AddAddressFor(const NetworkData::OnMeshPrefixConfig &aConfig);
216 static bool DoesConfigMatchNetifAddr(const NetworkData::OnMeshPrefixConfig &aConfig,
Dhistory_tracker.hpp421 … void RecordOnMeshPrefixEvent(NetDataEvent aEvent, const NetworkData::OnMeshPrefixConfig &aPrefix);
422 …void RecordExternalRouteEvent(NetDataEvent aEvent, const NetworkData::ExternalRouteConfig &aRoute);
451 NetworkData::MutableNetworkData mPreviousNetworkData;
453 uint8_t mNetworkDataTlvBuffer[NetworkData::NetworkData::kMaxSize];
/openthread-3.7.0/src/core/backbone_router/
Dbbr_leader.cpp78 error = Get<NetworkData::Service::Manager>().GetServiceId<NetworkData::Service::BackboneRouter>( in GetServiceId()
151 Get<NetworkData::Service::Manager>().GetBackboneRouterPrimary(config); in UpdateBackboneRouterPrimary()
219 NetworkData::Iterator iterator = NetworkData::kIteratorInit; in UpdateDomainPrefixConfig()
220 NetworkData::OnMeshPrefixConfig config; in UpdateDomainPrefixConfig()
224 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, config) == kErrorNone) in UpdateDomainPrefixConfig()
Dbbr_local.cpp178 NetworkData::Service::BackboneRouter::ServerData serverData; in AddService()
196 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Add<NetworkData::Service::BackboneRoute… in AddService()
197 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in AddService()
210 …SuccessOrExit(error = Get<NetworkData::Service::Manager>().Remove<NetworkData::Service::BackboneRo… in RemoveService()
211 Get<NetworkData::Notifier>().HandleServerDataUpdated(); in RemoveService()
317 Error Local::GetDomainPrefix(NetworkData::OnMeshPrefixConfig &aConfig) in GetDomainPrefix()
347 Error Local::SetDomainPrefix(const NetworkData::OnMeshPrefixConfig &aConfig) in SetDomainPrefix()
416 error = Get<NetworkData::Local>().RemoveOnMeshPrefix(mDomainPrefixConfig.GetPrefix()); in RemoveDomainPrefixFromNetworkData()
446 error = Get<NetworkData::Local>().AddOnMeshPrefix(mDomainPrefixConfig); in AddDomainPrefixToNetworkData()
Dbbr_local.hpp216 Error GetDomainPrefix(NetworkData::OnMeshPrefixConfig &aConfig);
239 Error SetDomainPrefix(const NetworkData::OnMeshPrefixConfig &aConfig);
316 NetworkData::OnMeshPrefixConfig mDomainPrefixConfig;
/openthread-3.7.0/src/core/border_router/
Drouting_manager.cpp668 bool RoutingManager::IsValidOmrPrefix(const NetworkData::OnMeshPrefixConfig &aOnMeshPrefixConfig) in IsValidOmrPrefix()
797 NetworkData::Iterator iterator = NetworkData::kIteratorInit; in NetworkDataContainsUlaRoute()
798 NetworkData::ExternalRouteConfig routeConfig; in NetworkDataContainsUlaRoute()
801 while (Get<NetworkData::Leader>().GetNextExternalRoute(iterator, routeConfig) == kErrorNone) in NetworkDataContainsUlaRoute()
1218 VerifyOrExit(!Get<NetworkData::Leader>().ContainsOmrPrefix(prefix)); in ProcessRouteInfoOption()
1403 NetworkData::Iterator iterator = NetworkData::kIteratorInit; in HandleNetDataChange()
1404 NetworkData::OnMeshPrefixConfig prefixConfig; in HandleNetDataChange()
1407 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, prefixConfig) == kErrorNone) in HandleNetDataChange()
1984 return !IsEmpty() && (mPreference >= NetworkData::kRoutePreferenceMedium); in IsInfrastructureDerived()
1987 void RoutingManager::FavoredOmrPrefix::SetFrom(const NetworkData::OnMeshPrefixConfig &aOnMeshPrefix… in SetFrom()
[all …]
/openthread-3.7.0/tests/unit/
Dtest_routing_manager.cpp655 case NetworkData::kRoutePreferenceLow: in PreferenceToString()
659 case NetworkData::kRoutePreferenceMedium: in PreferenceToString()
663 case NetworkData::kRoutePreferenceHigh: in PreferenceToString()
720 NetworkData::OnMeshPrefixConfig prefixConfig; in VerifyOmrPrefixInNetData()
738 NetworkData::OnMeshPrefixConfig prefixConfig; in VerifyNoOmrPrefixInNetData()
744 using NetworkData::RoutePreference;
797 NetworkData::ExternalRouteConfig routeConfig; in VerifyNat64PrefixInNetData()
937 … const DefaultRoute &aDefaultRoute = DefaultRoute(0, NetworkData::kRoutePreferenceMedium), in SendRouterAdvert()
946 … const DefaultRoute &aDefaultRoute = DefaultRoute(0, NetworkData::kRoutePreferenceMedium), in SendRouterAdvert()
955 … const DefaultRoute &aDefaultRoute = DefaultRoute(0, NetworkData::kRoutePreferenceMedium), in SendRouterAdvert()
[all …]
/openthread-3.7.0/src/core/instance/
Dinstance.hpp560 NetworkData::Local mNetworkDataLocal;
563 NetworkData::Leader mNetworkDataLeader;
566 NetworkData::Notifier mNetworkDataNotifier;
570 NetworkData::Publisher mNetworkDataPublisher;
573 NetworkData::Service::Manager mNetworkDataServiceManager;
852 template <> inline NetworkData::Local &Instance::Get(void) { return mNetworkDataLocal; } in Get()
855 template <> inline NetworkData::Leader &Instance::Get(void) { return mNetworkDataLeader; } in Get()
858 template <> inline NetworkData::Notifier &Instance::Get(void) { return mNetworkDataNotifier; } in Get()
862 template <> inline NetworkData::Publisher &Instance::Get(void) { return mNetworkDataPublisher; } in Get()
865 template <> inline NetworkData::Service::Manager &Instance::Get(void) { return mNetworkDataServiceM… in Get()
/openthread-3.7.0/tests/scripts/thread-cert/
Dnetwork_data.py51 class NetworkData(object): class
135 class HasRoute(NetworkData):
166 class Prefix(NetworkData):
234 class BorderRouter(NetworkData):
326 class LowpanId(NetworkData):
369 class CommissioningData(NetworkData):
406 class Service(NetworkData):
505 class Server(NetworkData):

1234