Home
last modified time | relevance | path

Searched refs:ThreadNetif (Results 1 – 25 of 32) sorted by relevance

12

/openthread-3.5.0/src/core/api/
Dip6_api.cpp58 instance.Get<ThreadNetif>().Up(); in otIp6SetEnabled()
62 instance.Get<ThreadNetif>().Down(); in otIp6SetEnabled()
71 bool otIp6IsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<ThreadNetif>().IsUp()… in otIp6IsEnabled()
75 return AsCoreType(aInstance).Get<ThreadNetif>().GetUnicastAddresses().GetHead(); in otIp6GetUnicastAddresses()
80 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress()
85 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress()
90 return AsCoreType(aInstance).Get<ThreadNetif>().GetMulticastAddresses().GetHead(); in otIp6GetMulticastAddresses()
95 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress()
100 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress()
105 return AsCoreType(aInstance).Get<ThreadNetif>().IsMulticastPromiscuousEnabled(); in otIp6IsMulticastPromiscuousEnabled()
[all …]
Dlink_api.cpp324 VerifyOrExit(!instance.Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in otLinkSetPromiscuous()
338 VerifyOrExit(!instance.Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in otLinkSetEnabled()
/openthread-3.5.0/src/core/thread/
Dthread_netif.cpp50 ThreadNetif::ThreadNetif(Instance &aInstance) in ThreadNetif() function in ot::ThreadNetif
56 void ThreadNetif::Up(void) in Up()
87 void ThreadNetif::Down(void) in Down()
Dthread_netif.hpp53 class ThreadNetif : public Ip6::Netif class
62 explicit ThreadNetif(Instance &aInstance);
Ddua_manager.cpp108 VerifyOrExit(!Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())); in HandleDomainPrefixUpdate()
177 if (Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())) in SetFixedDuaInterfaceIdentifier()
194 Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())) in ClearFixedDuaInterfaceIdentifier()
234 Get<ThreadNetif>().AddUnicastAddress(mDomainUnicastAddress); in AddDomainUnicastAddress()
246 Get<ThreadNetif>().RemoveUnicastAddress(mDomainUnicastAddress); in RemoveDomainUnicastAddress()
312 if (Get<ThreadNetif>().HasUnicastAddress(Get<DuaManager>().GetDomainUnicastAddress()) && in HandleNotifierEvents()
638 if (Get<ThreadNetif>().HasUnicastAddress(target)) in ProcessDuaResponse()
647 if (Get<ThreadNetif>().HasUnicastAddress(GetDomainUnicastAddress())) in ProcessDuaResponse()
Dmlr_manager.cpp96 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in UpdateLocalSubscriptions()
115 …for (const Ip6::Netif::ExternalMulticastAddress &addr : Get<ThreadNetif>().IterateExternalMulticas… in IsAddressMlrRegisteredByNetif()
228 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in SendMulticastListenerRegistration()
521 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in SetMulticastAddressMlrState()
553 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in FinishMulticastListenerRegistration()
661 …for (const Ip6::Netif::ExternalMulticastAddress &addr : Get<ThreadNetif>().IterateExternalMulticas… in LogMulticastAddresses()
763 …Get<ThreadNetif>().IterateExternalMulticastAddresses(Ip6::Address::kTypeMulticastLargerThanRealmLo… in CheckInvariants()
Dmle.cpp177 Get<ThreadNetif>().RemoveUnicastAddress(mLinkLocal64); in Disable()
189 VerifyOrExit(Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in Start()
245 Get<ThreadNetif>().UnsubscribeMulticast(mRealmLocalAllThreadNodes); in Stop()
246 Get<ThreadNetif>().UnsubscribeMulticast(mLinkLocalAllThreadNodes); in Stop()
247 Get<ThreadNetif>().RemoveUnicastAddress(mMeshLocal16); in Stop()
248 Get<ThreadNetif>().RemoveUnicastAddress(mMeshLocal64); in Stop()
698 Get<ThreadNetif>().RemoveUnicastAddress(mLeaderAloc); in SetStateDetached()
724 Get<ThreadNetif>().RemoveUnicastAddress(mLeaderAloc); in SetStateChild()
882 Get<ThreadNetif>().RemoveUnicastAddress(mLinkLocal64); in UpdateLinkLocalAddress()
884 Get<ThreadNetif>().AddUnicastAddress(mLinkLocal64); in UpdateLinkLocalAddress()
[all …]
Dchild_supervision.hpp53 class ThreadNetif;
Daddress_resolver.cpp777 for (const Ip6::Netif::UnicastAddress &address : Get<ThreadNetif>().GetUnicastAddresses()) in HandleTmf()
790 Get<ThreadNetif>().RemoveUnicastAddress(address); in HandleTmf()
846 if (Get<ThreadNetif>().HasUnicastAddress(target)) in HandleTmf()
Ddiscover_scanner.cpp76 VerifyOrExit(Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in Discover()
/openthread-3.5.0/src/core/net/
Dnd_agent.cpp84 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in UpdateService()
108 Get<ThreadNetif>().AddUnicastAddress(mAloc); in UpdateService()
121 Get<ThreadNetif>().RemoveUnicastAddress(mAloc); in ApplyMeshLocalPrefix()
123 Get<ThreadNetif>().AddUnicastAddress(mAloc); in ApplyMeshLocalPrefix()
Ddhcp6_server.cpp101 Get<ThreadNetif>().RemoveUnicastAddress(prefixAgent.GetAloc()); in UpdateService()
171 Get<ThreadNetif>().AddUnicastAddress(newEntry->GetAloc()); in AddPrefixAgent()
496 Get<ThreadNetif>().RemoveUnicastAddress(entry->GetAloc()); in ApplyMeshLocalPrefix()
498 Get<ThreadNetif>().AddUnicastAddress(entry->GetAloc()); in ApplyMeshLocalPrefix()
Dip6.cpp1162 Get<ThreadNetif>().IsMulticastSubscribed(header.GetDestination())) in HandleDatagram()
1166 else if (Get<ThreadNetif>().IsMulticastPromiscuousEnabled()) in HandleDatagram()
1175 if (Get<ThreadNetif>().HasUnicastAddress(header.GetDestination())) in HandleDatagram()
1328 for (const Netif::UnicastAddress &addr : Get<ThreadNetif>().GetUnicastAddresses()) in SelectSourceAddress()
1433 for (const Netif::UnicastAddress &unicastAddr : Get<ThreadNetif>().GetUnicastAddresses()) in IsOnLink()
Ddhcp6_client.cpp102 Get<ThreadNetif>().RemoveUnicastAddress(idAssociation.mNetifAddress); in UpdateAddresses()
584 Get<ThreadNetif>().AddUnicastAddress(idAssociation.mNetifAddress); in ProcessIaAddress()
Dudp6.cpp211 …VerifyOrExit(aSockAddr.GetAddress().IsUnspecified() || Get<ThreadNetif>().HasUnicastAddress(aSockA… in Bind()
/openthread-3.5.0/src/core/utils/
Dslaac_address.cpp191 Get<ThreadNetif>().RemoveUnicastAddress(slaacAddr); in Update()
215 … for (const Ip6::Netif::UnicastAddress &netifAddr : Get<ThreadNetif>().GetUnicastAddresses()) in Update()
242 Get<ThreadNetif>().AddUnicastAddress(slaacAddr); in Update()
Djam_detector.hpp51 class ThreadNetif;
/openthread-3.5.0/src/core/backbone_router/
Dbbr_local.cpp225 Get<ThreadNetif>().RemoveUnicastAddress(mBackboneRouterPrimaryAloc); in SetState()
231 Get<ThreadNetif>().AddUnicastAddress(mBackboneRouterPrimaryAloc); in SetState()
352 Get<ThreadNetif>().RemoveUnicastAddress(mBackboneRouterPrimaryAloc); in ApplyMeshLocalPrefix()
354 Get<ThreadNetif>().AddUnicastAddress(mBackboneRouterPrimaryAloc); in ApplyMeshLocalPrefix()
/openthread-3.5.0/src/core/meshcop/
Dmeshcop.hpp58 class ThreadNetif;
447 Error GetBorderAgentRloc(ThreadNetif &aNetIf, uint16_t &aRloc);
Dborder_agent.cpp192 Get<ThreadNetif>().AddUnicastAddress(mCommissionerAloc); in HandleCoapResponse()
590 Get<ThreadNetif>().RemoveUnicastAddress(mCommissionerAloc); in HandleConnected()
653 if (Get<ThreadNetif>().HasUnicastAddress(mCommissionerAloc)) in ApplyMeshLocalPrefix()
655 Get<ThreadNetif>().RemoveUnicastAddress(mCommissionerAloc); in ApplyMeshLocalPrefix()
657 Get<ThreadNetif>().AddUnicastAddress(mCommissionerAloc); in ApplyMeshLocalPrefix()
Dcommissioner.cpp327 Get<ThreadNetif>().RemoveUnicastAddress(mCommissionerAloc); in Stop()
849 Get<ThreadNetif>().AddUnicastAddress(mCommissionerAloc); in HandleLeaderPetitionResponse()
1162 Get<ThreadNetif>().RemoveUnicastAddress(mCommissionerAloc); in ApplyMeshLocalPrefix()
1164 Get<ThreadNetif>().AddUnicastAddress(mCommissionerAloc); in ApplyMeshLocalPrefix()
Dmeshcop.cpp303 Error GetBorderAgentRloc(ThreadNetif &aNetif, uint16_t &aRloc) in GetBorderAgentRloc()
Djoiner_router.cpp140 SuccessOrExit(error = GetBorderAgentRloc(Get<ThreadNetif>(), borderAgentRloc)); in HandleUdpReceive()
/openthread-3.5.0/src/core/mac/
Dlink_raw.cpp92 VerifyOrExit(!Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in SetReceiveDone()
/openthread-3.5.0/src/core/common/
Dinstance.hpp434 ThreadNetif mThreadNetif;
718 template <> inline ThreadNetif &Instance::Get(void) { return mThreadNetif; } in Get()

12