Home
last modified time | relevance | path

Searched refs:ServiceTlv (Results 1 – 14 of 14) sorted by relevance

/openthread-3.4.0/src/core/thread/
Dnetwork_data_leader_ftd.hpp165 const ServiceTlv *FindServiceById(uint8_t aServiceId) const;
270 Error AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags);
271 Error AddServer(const ServerTlv &aServer, ServiceTlv &aDstService, ChangedFlags &aChangedFlags);
290 void RemoveRlocInService(ServiceTlv &aService,
293 const ServiceTlv *aExcludeService,
312 static Error ValidateService(const ServiceTlv &aService, uint16_t aRloc16);
318 static bool ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer);
321 UpdateStatus UpdateService(ServiceTlv &aService);
Dnetwork_data.hpp461 const ServiceTlv *FindService(uint32_t aEnterpriseNumber,
480 const ServiceTlv *FindNextService(const ServiceTlv *aPrevServiceTlv,
499 const ServiceTlv *FindNextThreadService(const ServiceTlv *aPrevServiceTlv,
577 static bool MatchService(const ServiceTlv &aServiceTlv,
704 ServiceTlv *FindService(uint32_t aEnterpriseNumber, in FindService()
771 void RemoveTemporaryDataIn(ServiceTlv &aService);
Dnetwork_data_local.cpp184 ServiceTlv *serviceTlv; in AddService()
186 …uint16_t serviceTlvSize = ServiceTlv::CalculateSize(aEnterpriseNumber, aServiceData.GetLength()… in AddService()
193 serviceTlv = As<ServiceTlv>(AppendTlv(serviceTlvSize)); in AddService()
220 ServiceTlv *tlv; in RemoveService()
231 void Local::UpdateRloc(ServiceTlv &aService) in UpdateRloc()
266 UpdateRloc(*As<ServiceTlv>(cur)); in UpdateRloc()
Dnetwork_data.cpp179 subTlvs = As<ServiceTlv>(cur)->GetSubTlvs(); in Iterate()
284 const ServiceTlv *service = As<ServiceTlv>(cur); in Iterate()
430 ServiceTlv *service = As<ServiceTlv>(cur); in RemoveTemporaryData()
521 void MutableNetworkData::RemoveTemporaryDataIn(ServiceTlv &aService) in RemoveTemporaryDataIn()
568 const ServiceTlv *NetworkData::FindService(uint32_t aEnterpriseNumber, in FindService()
573 const ServiceTlv *serviceTlv; in FindService()
575 while ((serviceTlv = tlvIterator.Iterate<ServiceTlv>()) != nullptr) in FindService()
586 const ServiceTlv *NetworkData::FindNextService(const ServiceTlv *aPrevServiceTlv, in FindNextService()
608 const ServiceTlv *NetworkData::FindNextThreadService(const ServiceTlv *aPrevServiceTlv, in FindNextThreadService()
612 …return FindNextService(aPrevServiceTlv, ServiceTlv::kThreadEnterpriseNumber, aServiceData, aServic… in FindNextThreadService()
[all …]
Dnetwork_data_leader_ftd.cpp412 const ServiceTlv *service = As<ServiceTlv>(cur); in Validate()
519 Error Leader::ValidateService(const ServiceTlv &aService, uint16_t aRloc16) in ValidateService()
618 bool Leader::ContainsMatchingServer(const ServiceTlv *aService, const ServerTlv &aServer) in ContainsMatchingServer()
645 Leader::UpdateStatus Leader::UpdateService(ServiceTlv &aService) { return UpdateTlv(aService, aServ… in UpdateService()
700 SuccessOrExit(error = AddService(*As<ServiceTlv>(cur), flags)); in RegisterNetworkData()
764 Error Leader::AddService(const ServiceTlv &aService, ChangedFlags &aChangedFlags) in AddService()
767 ServiceTlv *dstService; in AddService()
780 dstService = As<ServiceTlv>( in AddService()
781 … AppendTlv(ServiceTlv::CalculateSize(aService.GetEnterpriseNumber(), serviceData.GetLength()))); in AddService()
912 Error Leader::AddServer(const ServerTlv &aServer, ServiceTlv &aDstService, ChangedFlags &aChangedFl… in AddServer()
[all …]
Dnetwork_data_types.hpp69 class ServiceTlv;
395 void SetFrom(const ServiceTlv &aServiceTlv, const ServerTlv &aServerTlv);
Dnetwork_data_service.hpp56 const uint32_t kThreadEnterpriseNumber = ServiceTlv::kThreadEnterpriseNumber; ///< Thread enterpris…
407 const ServiceTlv *mServiceTlv;
Dnetwork_data_local.hpp179 void UpdateRloc(ServiceTlv &aService);
Dnetwork_data_tlvs.cpp94 void ServiceTlv::Init(uint8_t aServiceId, uint32_t aEnterpriseNumber, const ServiceData &aServiceDa… in Init()
Dnetwork_data_service.cpp101 const ServiceTlv *serviceTlv = nullptr; in GetBackboneRouterPrimary()
173 const ServiceTlv *tlv = aIterator.mServiceTlv; in GetNextDnsSrpAnycastInfo()
Dnetwork_data_types.cpp238 void ServiceConfig::SetFrom(const ServiceTlv &aServiceTlv, const ServerTlv &aServerTlv) in SetFrom()
Dnetwork_data_tlvs.hpp1291 class ServiceTlv : public NetworkDataTlv class
1607 explicit TlvIterator(const ServiceTlv &aServiceTlv) in TlvIterator()
Dnetwork_data_publisher.cpp682 const ServiceTlv *serviceTlv = nullptr; in CountAnycastEntries()
710 const ServiceTlv *serviceTlv = nullptr; in CountUnicastEntries()
/openthread-3.4.0/tests/unit/
Dtest_network_data.cpp504 … return Local::AddService(ServiceTlv::kThreadEnterpriseNumber, aServiceData, true, ServerData()); in AddService()
507 Error ValidateServiceData(const ServiceTlv *aServiceTlv, const ServiceData &aServiceData) const in ValidateServiceData()
530 const ServiceTlv *tlv; in Test()
553 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData1, kServicePrefixMatch); in Test()
555 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData1, kServicePrefixMatch); in Test()
557 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData1, kServicePrefixMatch); in Test()
559 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData1, kServicePrefixMatch); in Test()
564 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData2, kServicePrefixMatch); in Test()
566 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData2, kServicePrefixMatch); in Test()
568 …tlv = FindNextService(tlv, ServiceTlv::kThreadEnterpriseNumber, serviceData2, kServicePrefixMatch); in Test()
[all …]