/openthread-latest/src/core/net/ |
D | netif.cpp | 91 bool Netif::IsMulticastSubscribed(const Address &aAddress) const in IsMulticastSubscribed() 93 return mMulticastAddresses.ContainsMatching(aAddress); in IsMulticastSubscribed() 239 void Netif::SignalMulticastAddressChange(AddressEvent aEvent, const MulticastAddress &aAddress, Add… in SignalMulticastAddressChange() argument 244 Get<Utils::HistoryTracker>().RecordAddressEvent(aEvent, aAddress, aOrigin); in SignalMulticastAddressChange() 251 info.mAddress = &aAddress.GetAddress(); in SignalMulticastAddressChange() 253 info.mScope = aAddress.GetAddress().GetScope(); in SignalMulticastAddressChange() 274 bool Netif::IsMulticastAddressExternal(const MulticastAddress &aAddress) const in IsMulticastAddressExternal() 276 …turn mExtMulticastAddressPool.IsPoolEntry(static_cast<const ExternalMulticastAddress &>(aAddress)); in IsMulticastAddressExternal() 279 void Netif::SubscribeMulticast(MulticastAddress &aAddress) in SubscribeMulticast() argument 281 SuccessOrExit(mMulticastAddresses.Add(aAddress)); in SubscribeMulticast() [all …]
|
D | netif.hpp | 233 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches() 280 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches() 417 void AddUnicastAddress(UnicastAddress &aAddress); 430 void RemoveUnicastAddress(UnicastAddress &aAddress); 442 void UpdatePreferredFlagOn(UnicastAddress &aAddress, bool aPreferred); 453 bool HasUnicastAddress(const Address &aAddress) const; 464 …bool HasUnicastAddress(const UnicastAddress &aAddress) const { return mUnicastAddresses.Contains(a… in HasUnicastAddress() 475 bool IsUnicastAddressExternal(const UnicastAddress &aAddress) const; 491 Error AddExternalUnicastAddress(const UnicastAddress &aAddress); 503 Error RemoveExternalUnicastAddress(const Address &aAddress); [all …]
|
D | socket.hpp | 92 void SetSockAddr(const Address &aAddress) { mSockAddr = aAddress; } in SetSockAddr() argument 132 void SetPeerAddr(const Address &aAddress) { mPeerAddr = aAddress; } in SetPeerAddr() argument 266 SockAddr(const Address &aAddress, uint16_t aPort) in SockAddr() argument 268 mAddress = aAddress; in SockAddr() 294 void SetAddress(const Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
|
/openthread-latest/src/posix/platform/ |
D | ip6_utils.hpp | 54 inline bool IsIp6AddressLinkLocal(const otIp6Address &aAddress) in IsIp6AddressLinkLocal() argument 56 return (aAddress.mFields.m8[0] == 0xfe) && ((aAddress.mFields.m8[1] & 0xc0) == 0x80); in IsIp6AddressLinkLocal() 68 inline bool IsIp6AddressMulticast(const otIp6Address &aAddress) { return (aAddress.mFields.m8[0] ==… in IsIp6AddressMulticast() argument 79 …bool IsIp6AddressUnspecified(const otIp6Address &aAddress) { return otIp6IsAddressUnspecified(&aAd… in IsIp6AddressUnspecified() argument 88 inline void CopyIp6AddressTo(const otIp6Address &aAddress, void *aBuffer) in CopyIp6AddressTo() argument 90 memcpy(aBuffer, &aAddress, sizeof(otIp6Address)); in CopyIp6AddressTo() 100 inline void ReadIp6AddressFrom(const void *aBuffer, otIp6Address &aAddress) in ReadIp6AddressFrom() argument 102 memcpy(&aAddress, aBuffer, sizeof(otIp6Address)); in ReadIp6AddressFrom() 118 Ip6AddressString(const void *aAddress) in Ip6AddressString() argument 120 …VerifyOrDie(inet_ntop(AF_INET6, aAddress, mBuffer, sizeof(mBuffer)) != nullptr, OT_EXIT_ERROR_ERRN… in Ip6AddressString()
|
D | multicast_routing.hpp | 113 void Add(const Ip6::Address &aAddress); 114 void Remove(const Ip6::Address &aAddress); 115 void UpdateMldReport(const Ip6::Address &aAddress, bool isAdd); 116 bool HasMulticastListener(const Ip6::Address &aAddress) const; 134 … const otIp6Address *aAddress); 136 … const Ip6::Address &aAddress);
|
D | multicast_routing.cpp | 93 … const otIp6Address *aAddress) in HandleBackboneMulticastListenerEvent() argument 96 aEvent, static_cast<const Ip6::Address &>(*aAddress)); in HandleBackboneMulticastListenerEvent() 100 … const Ip6::Address &aAddress) in HandleBackboneMulticastListenerEvent() argument 105 Add(aAddress); in HandleBackboneMulticastListenerEvent() 108 Remove(aAddress); in HandleBackboneMulticastListenerEvent() 131 void MulticastRoutingManager::Add(const Ip6::Address &aAddress) in Add() argument 135 UnblockInboundMulticastForwardingCache(aAddress); in Add() 136 UpdateMldReport(aAddress, true); in Add() 138 LogResult(OT_ERROR_NONE, "%s: %s", __FUNCTION__, aAddress.ToString().AsCString()); in Add() 144 void MulticastRoutingManager::Remove(const Ip6::Address &aAddress) in Remove() argument [all …]
|
/openthread-latest/src/core/thread/ |
D | child.cpp | 156 Error Child::GetMeshLocalIp6Address(Ip6::Address &aAddress) const in GetMeshLocalIp6Address() 162 aAddress.SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetMeshLocalIp6Address() 163 aAddress.SetIid(mMeshLocalIid); in GetMeshLocalIp6Address() 169 Error Child::GetNextIp6Address(AddressIterator &aIterator, Ip6::Address &aAddress) const in GetNextIp6Address() 177 if (GetMeshLocalIp6Address(aAddress) == kErrorNone) in GetNextIp6Address() 185 aAddress = mIp6Addresses[static_cast<Ip6AddressArray::IndexType>(aIterator - 1)]; in GetNextIp6Address() 192 Error Child::AddIp6Address(const Ip6::Address &aAddress) in AddIp6Address() argument 196 VerifyOrExit(!aAddress.IsUnspecified(), error = kErrorInvalidArgs); in AddIp6Address() 198 if (Get<Mle::MleRouter>().IsMeshLocalAddress(aAddress)) in AddIp6Address() 201 mMeshLocalIid = aAddress.GetIid(); in AddIp6Address() [all …]
|
D | child.hpp | 114 bool Matches(const Ip6::Address &aAddress) const { return (*this == aAddress); } in Matches() 183 Error GetMeshLocalIp6Address(Ip6::Address &aAddress) const; 224 Error GetNextIp6Address(AddressIterator &aIterator, Ip6::Address &aAddress) const; 237 Error AddIp6Address(const Ip6::Address &aAddress); 249 Error RemoveIp6Address(const Ip6::Address &aAddress); 260 bool HasIp6Address(const Ip6::Address &aAddress) const; 272 Error GetDomainUnicastAddress(Ip6::Address &aAddress) const; 392 bool HasMlrRegisteredAddress(const Ip6::Address &aAddress) const;
|
D | network_data_service.hpp | 177 Error AddDnsSrpUnicastServiceWithAddrInServiceData(const Ip6::Address &aAddress, uint16_t aPort) in AddDnsSrpUnicastServiceWithAddrInServiceData() argument 179 return AddService(DnsSrpUnicast::ServiceData(aAddress, aPort)); in AddDnsSrpUnicastServiceWithAddrInServiceData() 192 …Error RemoveDnsSrpUnicastServiceWithAddrInServiceData(const Ip6::Address &aAddress, uint16_t aPort) in RemoveDnsSrpUnicastServiceWithAddrInServiceData() argument 194 return RemoveService(DnsSrpUnicast::ServiceData(aAddress, aPort)); in RemoveDnsSrpUnicastServiceWithAddrInServiceData() 207 Error AddDnsSrpUnicastServiceWithAddrInServerData(const Ip6::Address &aAddress, uint16_t aPort) in AddDnsSrpUnicastServiceWithAddrInServerData() argument 209 return AddService(kDnsSrpUnicastServiceNumber, DnsSrpUnicast::ServerData(aAddress, aPort)); in AddDnsSrpUnicastServiceWithAddrInServerData() 351 explicit ServiceData(const Ip6::Address &aAddress, uint16_t aPort) in ServiceData() 353 , mAddress(aAddress) in ServiceData() 372 ServerData(const Ip6::Address &aAddress, uint16_t aPort) in ServerData() argument 373 : mAddress(aAddress) in ServerData()
|
D | mlr_manager.hpp | 152 …bool IsEmptyOrContains(const Ip6::Address &aAddress) const { return IsEmpty() || Contains(aAddress… in IsEmptyOrContains() 153 void AddUnique(const Ip6::Address &aAddress); 185 bool IsAddressMlrRegisteredByNetif(const Ip6::Address &aAddress) const; 189 bool IsAddressMlrRegisteredByAnyChild(const Ip6::Address &aAddress) const in IsAddressMlrRegisteredByAnyChild() 191 return IsAddressMlrRegisteredByAnyChildExcept(aAddress, nullptr); in IsAddressMlrRegisteredByAnyChild() 193 …bool IsAddressMlrRegisteredByAnyChildExcept(const Ip6::Address &aAddress, const Child *aExceptChil…
|
D | network_data_publisher.hpp | 157 void PublishDnsSrpServiceUnicast(const Ip6::Address &aAddress, uint16_t aPort) in PublishDnsSrpServiceUnicast() argument 159 mDnsSrpServiceEntry.PublishUnicast(aAddress, aPort); in PublishDnsSrpServiceUnicast() 390 void PublishUnicast(const Ip6::Address &aAddress, uint16_t aPort); 418 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument 421 static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort) in InfoUnicast() argument 423 return Info(aType, aPort, &aAddress); in InfoUnicast() 427 Info(Type aType, uint16_t aPortOrSeqNumber, const Ip6::Address *aAddress = nullptr);
|
/openthread-latest/src/core/api/ |
D | ip6_api.cpp | 78 bool otIp6HasUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6HasUnicastAddress() argument 80 return AsCoreType(aInstance).Get<ThreadNetif>().HasUnicastAddress(AsCoreType(aAddress)); in otIp6HasUnicastAddress() 83 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress) in otIp6AddUnicastAddress() argument 85 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress() 88 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6RemoveUnicastAddress() argument 90 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress() 98 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6SubscribeMulticastAddress() argument 100 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress() 103 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6UnsubscribeMulticastAddress() argument 105 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress() [all …]
|
D | commissioner_api.cpp | 131 const otIp6Address *aAddress) in otCommissionerAnnounceBegin() argument 134 aChannelMask, aCount, aPeriod, AsCoreType(aAddress)); in otCommissionerAnnounceBegin() 142 const otIp6Address *aAddress, in otCommissionerEnergyScan() argument 147 aChannelMask, aCount, aPeriod, aScanDuration, AsCoreType(aAddress), aCallback, aContext); in otCommissionerEnergyScan() 153 const otIp6Address *aAddress, in otCommissionerPanIdQuery() argument 158 aPanId, aChannelMask, AsCoreType(aAddress), aCallback, aContext); in otCommissionerPanIdQuery()
|
D | dns_api.cpp | 135 otIp6Address *aAddress, in otDnsAddressResponseGetAddress() argument 140 …return AsCoreType(aResponse).GetAddress(aIndex, AsCoreType(aAddress), (aTtl != nullptr) ? *aTtl : … in otDnsAddressResponseGetAddress() 187 otIp6Address *aAddress, in otDnsBrowseResponseGetHostAddress() argument 194 …return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), aTtl != nullp… in otDnsBrowseResponseGetHostAddress() 245 otIp6Address *aAddress, in otDnsServiceResponseGetHostAddress() argument 252 return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), in otDnsServiceResponseGetHostAddress()
|
/openthread-latest/src/core/utils/ |
D | slaac_address.cpp | 105 Error Slaac::FindDomainIdFor(const Ip6::Address &aAddress, uint8_t &aDomainId) const in FindDomainIdFor() argument 116 if (aAddress.PrefixMatch(slaacAddr.GetAddress()) >= Ip6::NetworkPrefix::kLength) in FindDomainIdFor() 222 void Slaac::DeprecateAddress(SlaacAddress &aAddress) in DeprecateAddress() argument 224 LogAddress(kDeprecating, aAddress); in DeprecateAddress() 226 aAddress.SetExpirationTime(TimerMilli::GetNow() + kDeprecationInterval); in DeprecateAddress() 227 mTimer.FireAtIfEarlier(aAddress.GetExpirationTime()); in DeprecateAddress() 229 Get<ThreadNetif>().UpdatePreferredFlagOn(aAddress, false); in DeprecateAddress() 243 void Slaac::RemoveAddress(SlaacAddress &aAddress) in RemoveAddress() argument 245 LogAddress(kRemoving, aAddress); in RemoveAddress() 247 Get<ThreadNetif>().RemoveUnicastAddress(aAddress); in RemoveAddress() [all …]
|
D | slaac_address.hpp | 143 Error GenerateIid(Ip6::Netif::UnicastAddress &aAddress, uint8_t &aDadCounter) const; 160 Error FindDomainIdFor(const Ip6::Address &aAddress, uint8_t &aDomainId) const; 209 void DeprecateAddress(SlaacAddress &aAddress); 210 void RemoveAddress(SlaacAddress &aAddress); 215 void LogAddress(Action aAction, const SlaacAddress &aAddress);
|
D | parse_cmdline.hpp | 185 otError ParseAsIp6Address(const char *aString, otIp6Address &aAddress); 197 otError ParseAsIp4Address(const char *aString, otIp4Address &aAddress); 497 otError ParseAsIp6Address(otIp6Address &aAddress) const in ParseAsIp6Address() 499 return CmdLineParser::ParseAsIp6Address(mString, aAddress); in ParseAsIp6Address() 511 otError ParseAsIp4Address(otIp4Address &aAddress) const in ParseAsIp4Address() 513 return CmdLineParser::ParseAsIp4Address(mString, aAddress); in ParseAsIp4Address()
|
/openthread-latest/src/core/backbone_router/ |
D | backbone_tmf.cpp | 128 void BackboneTmfAgent::SubscribeMulticast(const Ip6::Address &aAddress) in SubscribeMulticast() argument 130 Error error = mSocket.JoinNetifMulticastGroup(Ip6::kNetifBackbone, aAddress); in SubscribeMulticast() 132 LogError("Backbone TMF subscribes", aAddress, error); in SubscribeMulticast() 135 void BackboneTmfAgent::UnsubscribeMulticast(const Ip6::Address &aAddress) in UnsubscribeMulticast() argument 137 Error error = mSocket.LeaveNetifMulticastGroup(Ip6::kNetifBackbone, aAddress); in UnsubscribeMulticast() 139 LogError("Backbone TMF unsubscribes", aAddress, error); in UnsubscribeMulticast() 142 void BackboneTmfAgent::LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const in LogError() argument 145 OT_UNUSED_VARIABLE(aAddress); in LogError() 149 LogInfo("%s %s: %s", aText, aAddress.ToString().AsCString(), ErrorToString(aError)); in LogError() 153 LogWarn("%s %s: %s", aText, aAddress.ToString().AsCString(), ErrorToString(aError)); in LogError()
|
D | multicast_listeners_table.cpp | 54 Error MulticastListenersTable::Add(const Ip6::Address &aAddress, Time aExpireTime) in Add() argument 58 VerifyOrExit(aAddress.IsMulticastLargerThanRealmLocal(), error = kErrorInvalidArgs); in Add() 64 if (listener.GetAddress() == aAddress) in Add() 74 mListeners[mNumValidListeners].SetAddress(aAddress); in Add() 80 mCallback.InvokeIfSet(MapEnum(Listener::kEventAdded), &aAddress); in Add() 83 Log(kAdd, aAddress, aExpireTime, error); in Add() 88 void MulticastListenersTable::Remove(const Ip6::Address &aAddress) in Remove() argument 96 if (listener.GetAddress() == aAddress) in Remove() 106 mCallback.InvokeIfSet(MapEnum(Listener::kEventRemoved), &aAddress); in Remove() 113 Log(kRemove, aAddress, TimeMilli(0), error); in Remove() [all …]
|
D | multicast_listeners_table.hpp | 105 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument 137 Error Add(const Ip6::Address &aAddress, TimeMilli aExpireTime); 145 void Remove(const Ip6::Address &aAddress); 224 … void Log(Action aAction, const Ip6::Address &aAddress, TimeMilli aExpireTime, Error aError) const;
|
D | backbone_tmf.hpp | 88 void SubscribeMulticast(const Ip6::Address &aAddress); 96 void UnsubscribeMulticast(const Ip6::Address &aAddress); 104 void LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const;
|
/openthread-latest/src/cli/ |
D | cli_link_metrics.hpp | 90 static void HandleLinkMetricsReport(const otIp6Address *aAddress, 95 void HandleLinkMetricsReport(const otIp6Address *aAddress, 99 … static void HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress, 102 … void HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress, 104 static void HandleLinkMetricsConfigEnhAckProbingMgmtResponse(const otIp6Address *aAddress, 107 …void HandleLinkMetricsConfigEnhAckProbingMgmtResponse(const otIp6Address *aAddress, otLinkMetricsS… 108 void HandleLinkMetricsMgmtResponse(const otIp6Address *aAddress, otLinkMetricsStatus aStatus);
|
D | cli_link_metrics.cpp | 446 void LinkMetrics::HandleLinkMetricsReport(const otIp6Address *aAddress, in HandleLinkMetricsReport() argument 451 … static_cast<LinkMetrics *>(aContext)->HandleLinkMetricsReport(aAddress, aMetricsValues, aStatus); in HandleLinkMetricsReport() 479 void LinkMetrics::HandleLinkMetricsReport(const otIp6Address *aAddress, in HandleLinkMetricsReport() argument 484 OutputIp6AddressLine(*aAddress); in HandleLinkMetricsReport() 502 …LinkMetrics::HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress, in HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse() argument 506 …kMetrics *>(aContext)->HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(aAddress, aStatus); in HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse() 509 …LinkMetrics::HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress, in HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse() argument 512 HandleLinkMetricsMgmtResponse(aAddress, aStatus); in HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse() 521 void LinkMetrics::HandleLinkMetricsConfigEnhAckProbingMgmtResponse(const otIp6Address *aAddress, in HandleLinkMetricsConfigEnhAckProbingMgmtResponse() argument 525 …static_cast<LinkMetrics *>(aContext)->HandleLinkMetricsConfigEnhAckProbingMgmtResponse(aAddress, a… in HandleLinkMetricsConfigEnhAckProbingMgmtResponse() [all …]
|
/openthread-latest/tests/unit/ |
D | test_lowpan.hpp | 76 void SetMacSource(const uint8_t *aAddress) { mMacAddrs.mSource.SetExtended(aAddress); } in SetMacSource() argument 84 void SetMacSource(uint16_t aAddress) { mMacAddrs.mSource.SetShort(aAddress); } in SetMacSource() argument 92 … void SetMacDestination(const uint8_t *aAddress) { mMacAddrs.mDestination.SetExtended(aAddress); } in SetMacDestination() argument 100 void SetMacDestination(uint16_t aAddress) { mMacAddrs.mDestination.SetShort(aAddress); } in SetMacDestination() argument
|
/openthread-latest/include/openthread/ |
D | ip6.h | 305 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress); 318 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress); 340 bool otIp6HasUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress); 359 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress); 372 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress); 618 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress); 650 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize); 707 void otIp6GetPrefix(const otIp6Address *aAddress, uint8_t aLength, otIp6Prefix *aPrefix); 718 bool otIp6IsAddressUnspecified(const otIp6Address *aAddress);
|