/openthread-3.5.0/src/core/net/ |
D | netif.hpp | 154 const Address &GetAddress(void) const { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::Netif::UnicastAddress 162 Address &GetAddress(void) { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::Netif::UnicastAddress 184 return (mPrefixLength == aPrefix.GetLength()) && GetAddress().MatchesPrefix(aPrefix); in HasPrefix() 195 … return mScopeOverrideValid ? static_cast<uint8_t>(mScopeOverride) : GetAddress().GetScope(); in GetScope() 219 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches() 239 const Address &GetAddress(void) const { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::Netif::MulticastAddress 247 Address &GetAddress(void) { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::Netif::MulticastAddress 266 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
|
D | socket.hpp | 280 GetAddress().Clear(); in SockAddr() 302 Address &GetAddress(void) { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::SockAddr 310 const Address &GetAddress(void) const { return AsCoreType(&mAddress); } in GetAddress() function in ot::Ip6::SockAddr 348 return (GetPort() == aOther.GetPort()) && (GetAddress() == aOther.GetAddress()); in operator ==()
|
D | netif.cpp | 252 info.mAddress = &aAddress.GetAddress(); in SignalMulticastAddressChange() 254 info.mScope = aAddress.GetAddress().GetScope(); in SignalMulticastAddressChange() 312 VerifyOrExit(cur->GetAddress() != aAddress, error = kErrorRejected); in SubscribeExternalMulticast() 361 IgnoreError(UnsubscribeExternalMulticast(entry->GetAddress())); in UnsubscribeAllExternalMulticastAddresses() 421 VerifyOrExit(!aAddress.GetAddress().IsMulticast(), error = kErrorInvalidArgs); in AddExternalUnicastAddress() 423 entry = mUnicastAddresses.FindMatching(aAddress.GetAddress()); in AddExternalUnicastAddress() 436 VerifyOrExit(!aAddress.GetAddress().IsLinkLocal(), error = kErrorInvalidArgs); in AddExternalUnicastAddress() 481 IgnoreError(RemoveExternalUnicastAddress(entry->GetAddress())); in RemoveAllExternalUnicastAddresses() 542 … !(mNetif.IsMulticastAddressExternal(*aAddr) && aAddr->GetAddress().MatchesFilter(mFilter))) in AdvanceFrom()
|
D | nd_agent.cpp | 58 uint8_t contextId = static_cast<uint8_t>(mAloc.GetAddress().GetIid().GetLocator() - in UpdateService() 107 … mAloc.GetAddress().SetToAnycastLocator(Get<Mle::MleRouter>().GetMeshLocalPrefix(), rloc); in UpdateService() 122 mAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix()
|
D | udp6.cpp | 56 …VerifyOrExit(aMessageInfo.GetSockAddr().IsMulticast() || GetSockName().GetAddress().IsUnspecified(… in Matches() 57 GetSockName().GetAddress() == aMessageInfo.GetSockAddr()); in Matches() 64 VerifyOrExit(GetPeerName().GetAddress().IsUnspecified() || in Matches() 65 GetPeerName().GetAddress() == aMessageInfo.GetPeerAddr()); in Matches() 211 …VerifyOrExit(aSockAddr.GetAddress().IsUnspecified() || Get<ThreadNetif>().HasUnicastAddress(aSockA… in Bind() 327 … VerifyOrExit(!aSocket.GetPeerName().GetAddress().IsUnspecified(), error = kErrorInvalidArgs); in SendTo() 329 messageInfoLocal.SetPeerAddr(aSocket.GetPeerName().GetAddress()); in SendTo() 340 messageInfoLocal.SetSockAddr(aSocket.GetSockName().GetAddress()); in SendTo()
|
D | socket.cpp | 57 aWriter.Append("[%s]:%u", GetAddress().ToString().AsCString(), GetPort()); in ToString()
|
D | dhcp6_server.cpp | 322 if (mPrefixAgents[i].IsValid() && mPrefixAgents[i].IsPrefixMatch(option.GetAddress())) in ProcessIaAddress() 470 option.GetAddress().SetPrefix(aPrefix.mFields.m8, OT_IP6_PREFIX_BITSIZE); in AddIaAddress() 471 option.GetAddress().GetIid().SetFromExtAddress(aClientId.GetDuidLinkLayerAddress()); in AddIaAddress() 497 entry->GetAloc().GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix()
|
D | dhcp6_client.cpp | 379 option.SetAddress(idAssociation.mNetifAddress.GetAddress()); in AppendIaAddress() 574 if (idAssociation.mNetifAddress.GetAddress().PrefixMatch(option.GetAddress()) >= in ProcessIaAddress() 577 idAssociation.mNetifAddress.mAddress = option.GetAddress(); in ProcessIaAddress()
|
D | srp_client.cpp | 99 LogInfo("%s", GetAddress(index).ToString().AsCString()); in SetAddresses() 713 info.SetServerAddress(GetServerAddress().GetAddress()); in ChangeHostAndServiceStates() 1251 if (unicastAddress.GetAddress().IsLinkLocal() || in AppendHostDescriptionInstruction() 1252 Get<Mle::Mle>().IsMeshLocalAddress(unicastAddress.GetAddress())) in AppendHostDescriptionInstruction() 1257 SuccessOrExit(error = AppendAaaaRecord(unicastAddress.GetAddress(), aMessage, aInfo)); in AppendHostDescriptionInstruction() 1270 SuccessOrExit(error = AppendAaaaRecord(mHostInfo.GetAddress(index), aMessage, aInfo)); in AppendHostDescriptionInstruction() 2024 if (!serverSockAddr.GetAddress().IsUnspecified()) in ProcessAutoStart() 2067 … if (hasSavedServerInfo && (unicastInfo.mSockAddr.GetAddress() == savedInfo.GetServerAddress()) && in SelectUnicastEntry() 2081 …if ((error == kErrorNotFound) || (unicastInfo.mSockAddr.GetAddress() < aInfo.mSockAddr.GetAddress(… in SelectUnicastEntry() 2176 if (!serverSockAddr.GetAddress().IsUnspecified() && (GetServerAddress() != serverSockAddr)) in SelectNextServer()
|
D | dns_client.cpp | 68 IgnoreError(GetServerSockAddr().GetAddress().FromString(kDefaultServerAddressString)); in QueryConfig() 95 if (GetServerSockAddr().GetAddress().IsUnspecified()) in SetFrom() 97 GetServerSockAddr().GetAddress() = aDefaultConfig.GetServerSockAddr().GetAddress(); in SetFrom() 229 aAddress = aaaaRecord.GetAddress(); in FindHostAddress() 421 Error Client::AddressResponse::GetAddress(uint16_t aIndex, Ip6::Address &aAddress, uint32_t &aTtl) … in GetAddress() function in ot::Dns::Client::AddressResponse 449 aAddress.SynthesizeFromIp4Address(nat64Prefix.GetPrefix(), aRecord.GetAddress()); in GetAddress() 833 mUserDidSetDefaultAddress = !aQueryConfig.GetServerSockAddr().GetAddress().IsUnspecified(); in SetDefaultConfig() 851 const Ip6::Address &srpServerAddr = Get<Srp::Client>().GetServerAddress().GetAddress(); in UpdateDefaultConfigAddress() 1194 messageInfo.SetPeerAddr(aInfo.mConfig.GetServerSockAddr().GetAddress()); in SendQuery()
|
D | dhcp6.hpp | 506 Ip6::Address &GetAddress(void) { return mAddress; } in GetAddress() function in ot::Dhcp6::IaAddress 514 const Ip6::Address &GetAddress(void) const { return mAddress; } in GetAddress() function in ot::Dhcp6::IaAddress
|
/openthread-3.5.0/src/core/utils/ |
D | slaac_address.cpp | 143 (aAddr.GetAddress().MatchesPrefix(aConfig.GetPrefix()))); in DoesConfigMatchNetifAddr() 189 LogInfo("Removing address %s", slaacAddr.GetAddress().ToString().AsCString()); in Update() 236 slaacAddr.GetAddress().SetPrefix(prefix); in Update() 240 LogInfo("Adding address %s", slaacAddr.GetAddress().ToString().AsCString()); in Update() 305 aAddress.GetAddress().GetIid().SetBytes(hash.GetBytes()); in GenerateIid() 308 if (aAddress.GetAddress().GetIid().IsReserved()) in GenerateIid()
|
/openthread-3.5.0/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 64 if (listener.GetAddress() == aAddress) in Add() 96 if (listener.GetAddress() == aAddress) in Remove() 124 Log(kExpire, mListeners[0].GetAddress(), mListeners[0].GetExpireTime(), kErrorNone); in Expire() 125 address = mListeners[0].GetAddress(); in Expire() 270 mCallback.Invoke(MapEnum(Listener::kEventRemoved), &mListeners[i].GetAddress()); in Clear() 287 mCallback.Invoke(MapEnum(Listener::kEventAdded), &mListeners[i].GetAddress()); in SetCallback()
|
D | bbr_local.cpp | 65 … mBackboneRouterPrimaryAloc.GetAddress().GetIid().SetToLocator(Mle::kAloc16BackboneRouterPrimary); in Local() 230 … mBackboneRouterPrimaryAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in SetState() 353 … mBackboneRouterPrimaryAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix()
|
/openthread-3.5.0/src/core/thread/ |
D | mle.hpp | 355 …const Ip6::NetworkPrefix &GetMeshLocalPrefix(void) const { return mMeshLocal16.GetAddress().GetPre… in GetMeshLocalPrefix() 394 const Ip6::Address &GetLinkLocalAddress(void) const { return mLinkLocal64.GetAddress(); } in GetLinkLocalAddress() 410 …ss &GetLinkLocalAllThreadNodesAddress(void) const { return mLinkLocalAllThreadNodes.GetAddress(); } in GetLinkLocalAllThreadNodesAddress() 420 return mRealmLocalAllThreadNodes.GetAddress(); in GetRealmLocalAllThreadNodesAddress() 525 const Ip6::Address &GetMeshLocal16(void) const { return mMeshLocal16.GetAddress(); } in GetMeshLocal16() 533 const Ip6::Address &GetMeshLocal64(void) const { return mMeshLocal64.GetAddress(); } in GetMeshLocal64() 1146 uint16_t GetAloc16(void) const { return GetAddress().GetIid().GetLocator(); } in GetAloc16() 1147 void SetAloc16(uint16_t aAloc16) { GetAddress().GetIid().SetLocator(aAloc16); } in SetAloc16() 1148 …void ApplyMeshLocalPrefix(const Ip6::NetworkPrefix &aPrefix) { GetAddress().SetPrefix(aPrefix)… in ApplyMeshLocalPrefix()
|
D | mle.cpp | 125 mLinkLocal64.GetAddress().SetToLinkLocalAddress(Get<Mac::Mac>().GetExtAddress()); in Mle() 130 mMeshLocal64.GetAddress().GetIid().GenerateRandom(); in Mle() 133 mMeshLocal16.GetAddress().GetIid().SetToLocator(0); in Mle() 137 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff32); in Mle() 138 mLinkLocalAllThreadNodes.GetAddress().mFields.m16[7] = HostSwap16(0x0001); in Mle() 141 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[0] = HostSwap16(0xff33); in Mle() 142 mRealmLocalAllThreadNodes.GetAddress().mFields.m16[7] = HostSwap16(0x0001); in Mle() 412 mMeshLocal64.GetAddress().SetIid(networkInfo.GetMeshLocalIid()); in Restore() 479 networkInfo.SetMeshLocalIid(mMeshLocal64.GetAddress().GetIid()); in Store() 883 mLinkLocal64.GetAddress().GetIid().SetFromExtAddress(Get<Mac::Mac>().GetExtAddress()); in UpdateLinkLocalAddress() [all …]
|
D | network_data_service.cpp | 288 aInfo.mSockAddr.SetAddress(serverData->GetAddress()); in GetNextDnsSrpUnicastInfo() 300 … aInfo.mSockAddr.GetAddress().SetToRoutingLocator(Get<Mle::Mle>().GetMeshLocalPrefix(), in GetNextDnsSrpUnicastInfo() 324 aInfo.mSockAddr.SetAddress(dnsServiceData->GetAddress()); in GetNextDnsSrpUnicastInfo()
|
D | network_data_service.hpp | 301 const Ip6::Address &GetAddress(void) const { return mAddress; } in GetAddress() function in ot::NetworkData::Service::DnsSrpUnicast::ServiceData 352 const Ip6::Address &GetAddress(void) const { return mAddress; } in GetAddress() function in ot::NetworkData::Service::DnsSrpUnicast::ServerData
|
D | child.hpp | 144 const Ip6::Address *GetAddress(void) const; 182 const Ip6::Address &operator*(void) const { return *GetAddress(); } in operator *()
|
D | dua_manager.cpp | 118 mDomainUnicastAddress.GetAddress().Clear(); in HandleDomainPrefixUpdate() 119 mDomainUnicastAddress.GetAddress().SetPrefix(*prefix); in HandleDomainPrefixUpdate() 129 mDomainUnicastAddress.GetAddress().SetIid(mFixedDuaInterfaceIdentifier); in HandleDomainPrefixUpdate() 157 LogInfo("Generated DUA: %s", mDomainUnicastAddress.GetAddress().ToString().AsCString()); in GenerateDomainUnicastAddressIid() 180 mDomainUnicastAddress.GetAddress().SetIid(mFixedDuaInterfaceIdentifier); in SetFixedDuaInterfaceIdentifier()
|
D | mlr_manager.cpp | 98 … (addr.GetMlrState() == kMlrStateToRegister && IsAddressMlrRegisteredByAnyChild(addr.GetAddress())) in UpdateLocalSubscriptions() 117 if (addr.GetAddress() == aAddress && addr.GetMlrState() == kMlrStateRegistered) in IsAddressMlrRegisteredByNetif() 237 AppendToUniqueAddressList(addresses, addressesNum, addr.GetAddress()); in SendMulticastListenerRegistration() 557 …success = aSuccess || !AddressListContains(aFailedAddresses, aFailedAddressNum, addr.GetAddress()); in FinishMulticastListenerRegistration() 663 LogDebg("%-32s%c", addr.GetAddress().ToString().AsCString(), "-rR"[addr.GetMlrState()]); in LogMulticastAddresses()
|
D | child.cpp | 78 const Ip6::Address *Child::AddressIterator::GetAddress(void) const in GetAddress() function in ot::Child::AddressIterator 99 address = GetAddress(); in Update()
|
/openthread-3.5.0/tests/unit/ |
D | test_child.cpp | 156 VerifyOrQuit(*iter1.GetAddress() == address); in VerifyChildIp6Addresses() 157 VerifyOrQuit(*iter1.GetAddress() == *iter2.GetAddress()); in VerifyChildIp6Addresses()
|
D | test_netif.cpp | 74 if (addr.GetAddress() == aAddresses[i]) in VerifyMulticastAddressList() 137 IgnoreError(netifAddress.GetAddress().FromString(kTestAddress1)); in TestNetifMulticastAddresses()
|
/openthread-3.5.0/src/core/meshcop/ |
D | border_agent.cpp | 191 … IgnoreError(Get<Mle::MleRouter>().GetCommissionerAloc(mCommissionerAloc.GetAddress(), sessionId)); in HandleCoapResponse() 196 mCommissionerAloc.GetAddress().ToString().AsCString()); in HandleCoapResponse() 322 messageInfo.SetSockAddr(mCommissionerAloc.GetAddress()); in HandleTmf() 342 if (aMessageInfo.GetSockAddr() != mCommissionerAloc.GetAddress()) in HandleUdpReceive() 346 mCommissionerAloc.GetAddress().ToString().AsCString()); in HandleUdpReceive() 656 mCommissionerAloc.GetAddress().SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in ApplyMeshLocalPrefix()
|