Home
last modified time | relevance | path

Searched refs:aAddress (Results 1 – 25 of 130) sorted by relevance

123456

/openthread-latest/src/core/net/
Dnetif.cpp85 bool Netif::IsMulticastSubscribed(const Address &aAddress) const in IsMulticastSubscribed()
87 return mMulticastAddresses.ContainsMatching(aAddress); in IsMulticastSubscribed()
233 void Netif::SignalMulticastAddressChange(AddressEvent aEvent, const MulticastAddress &aAddress, Add… in SignalMulticastAddressChange() argument
238 Get<Utils::HistoryTracker>().RecordAddressEvent(aEvent, aAddress, aOrigin); in SignalMulticastAddressChange()
245 info.mAddress = &aAddress.GetAddress(); in SignalMulticastAddressChange()
247 info.mScope = aAddress.GetAddress().GetScope(); in SignalMulticastAddressChange()
268 bool Netif::IsMulticastAddressExternal(const MulticastAddress &aAddress) const in IsMulticastAddressExternal()
270 …turn mExtMulticastAddressPool.IsPoolEntry(static_cast<const ExternalMulticastAddress &>(aAddress)); in IsMulticastAddressExternal()
273 void Netif::SubscribeMulticast(MulticastAddress &aAddress) in SubscribeMulticast() argument
275 SuccessOrExit(mMulticastAddresses.Add(aAddress)); in SubscribeMulticast()
[all …]
Dnetif.hpp215 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
257 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
385 void AddUnicastAddress(UnicastAddress &aAddress);
397 void RemoveUnicastAddress(UnicastAddress &aAddress);
408 void UpdatePreferredFlagOn(UnicastAddress &aAddress, bool aPreferred);
418 bool HasUnicastAddress(const Address &aAddress) const;
428 …bool HasUnicastAddress(const UnicastAddress &aAddress) const { return mUnicastAddresses.Contains(a… in HasUnicastAddress()
438 bool IsUnicastAddressExternal(const UnicastAddress &aAddress) const;
453 Error AddExternalUnicastAddress(const UnicastAddress &aAddress);
464 Error RemoveExternalUnicastAddress(const Address &aAddress);
[all …]
Dsocket.hpp86 void SetSockAddr(const Address &aAddress) { mSockAddr = aAddress; } in SetSockAddr() argument
121 void SetPeerAddr(const Address &aAddress) { mPeerAddr = aAddress; } in SetPeerAddr() argument
249 SockAddr(const Address &aAddress, uint16_t aPort) in SockAddr() argument
251 mAddress = aAddress; in SockAddr()
274 void SetAddress(const Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
Dudp6.cpp112 …ror Udp::Socket::JoinNetifMulticastGroup(NetifIdentifier aNetifIdentifier, const Address &aAddress) in JoinNetifMulticastGroup() argument
115 OT_UNUSED_VARIABLE(aAddress); in JoinNetifMulticastGroup()
119 VerifyOrExit(aAddress.IsMulticast(), error = kErrorInvalidArgs); in JoinNetifMulticastGroup()
122 error = Plat::JoinMulticastGroup(*this, aNetifIdentifier, aAddress); in JoinNetifMulticastGroup()
129 …or Udp::Socket::LeaveNetifMulticastGroup(NetifIdentifier aNetifIdentifier, const Address &aAddress) in LeaveNetifMulticastGroup() argument
132 OT_UNUSED_VARIABLE(aAddress); in LeaveNetifMulticastGroup()
136 VerifyOrExit(aAddress.IsMulticast(), error = kErrorInvalidArgs); in LeaveNetifMulticastGroup()
139 error = Plat::LeaveMulticastGroup(*this, aNetifIdentifier, aAddress); in LeaveNetifMulticastGroup()
184 …:Plat::JoinMulticastGroup(SocketHandle &aSocket, NetifIdentifier aNetifId, const Address &aAddress) in JoinMulticastGroup() argument
186 …Socket.ShouldUsePlatformUdp() ? otPlatUdpJoinMulticastGroup(&aSocket, MapEnum(aNetifId), &aAddress) in JoinMulticastGroup()
[all …]
/openthread-latest/src/posix/platform/
Dip6_utils.hpp53 inline bool IsIp6AddressLinkLocal(const otIp6Address &aAddress) in IsIp6AddressLinkLocal() argument
55 return (aAddress.mFields.m8[0] == 0xfe) && ((aAddress.mFields.m8[1] & 0xc0) == 0x80); in IsIp6AddressLinkLocal()
66 inline bool IsIp6AddressMulticast(const otIp6Address &aAddress) { return (aAddress.mFields.m8[0] ==… in IsIp6AddressMulticast() argument
76 …bool IsIp6AddressUnspecified(const otIp6Address &aAddress) { return otIp6IsAddressUnspecified(&aAd… in IsIp6AddressUnspecified() argument
84 inline void CopyIp6AddressTo(const otIp6Address &aAddress, void *aBuffer) in CopyIp6AddressTo() argument
86 memcpy(aBuffer, &aAddress, sizeof(otIp6Address)); in CopyIp6AddressTo()
95 inline void ReadIp6AddressFrom(const void *aBuffer, otIp6Address &aAddress) in ReadIp6AddressFrom() argument
97 memcpy(&aAddress, aBuffer, sizeof(otIp6Address)); in ReadIp6AddressFrom()
111 Ip6AddressString(const void *aAddress) in Ip6AddressString() argument
113 …VerifyOrDie(inet_ntop(AF_INET6, aAddress, mBuffer, sizeof(mBuffer)) != nullptr, OT_EXIT_ERROR_ERRN… in Ip6AddressString()
Dmulticast_routing.hpp113 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);
Dmulticast_routing.cpp93 … 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/
Dchild.cpp151 Error Child::GetMeshLocalIp6Address(Ip6::Address &aAddress) const in GetMeshLocalIp6Address()
157 aAddress.SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetMeshLocalIp6Address()
158 aAddress.SetIid(mMeshLocalIid); in GetMeshLocalIp6Address()
164 Error Child::GetNextIp6Address(AddressIterator &aIterator, Ip6::Address &aAddress) const in GetNextIp6Address()
172 if (GetMeshLocalIp6Address(aAddress) == kErrorNone) in GetNextIp6Address()
180 aAddress = mIp6Addresses[static_cast<Ip6AddressArray::IndexType>(aIterator - 1)]; in GetNextIp6Address()
187 Error Child::AddIp6Address(const Ip6::Address &aAddress) in AddIp6Address() argument
191 VerifyOrExit(!aAddress.IsUnspecified(), error = kErrorInvalidArgs); in AddIp6Address()
193 if (Get<Mle::MleRouter>().IsMeshLocalAddress(aAddress)) in AddIp6Address()
196 mMeshLocalIid = aAddress.GetIid(); in AddIp6Address()
[all …]
Dchild.hpp101 bool Matches(const Ip6::Address &aAddress) const { return (*this == aAddress); } in Matches()
162 Error GetMeshLocalIp6Address(Ip6::Address &aAddress) const;
199 Error GetNextIp6Address(AddressIterator &aIterator, Ip6::Address &aAddress) const;
211 Error AddIp6Address(const Ip6::Address &aAddress);
222 Error RemoveIp6Address(const Ip6::Address &aAddress);
232 bool HasIp6Address(const Ip6::Address &aAddress) const;
243 Error GetDomainUnicastAddress(Ip6::Address &aAddress) const;
348 bool HasMlrRegisteredAddress(const Ip6::Address &aAddress) const;
Dnetwork_data_service.hpp167 …Error AddDnsSrpUnicastServiceWithAddrInServiceData(const Ip6::Address &aAddress, uint16_t aPort, u… in AddDnsSrpUnicastServiceWithAddrInServiceData() argument
169 return AddService(DnsSrpUnicast::ServiceData(aAddress, aPort, aVersion)); in AddDnsSrpUnicastServiceWithAddrInServiceData()
182 Error RemoveDnsSrpUnicastServiceWithAddrInServiceData(const Ip6::Address &aAddress, in RemoveDnsSrpUnicastServiceWithAddrInServiceData() argument
186 return RemoveService(DnsSrpUnicast::ServiceData(aAddress, aPort, aVersion)); in RemoveDnsSrpUnicastServiceWithAddrInServiceData()
199 …Error AddDnsSrpUnicastServiceWithAddrInServerData(const Ip6::Address &aAddress, uint16_t aPort, ui… in AddDnsSrpUnicastServiceWithAddrInServerData() argument
201 …return AddServiceWithNumber(kDnsSrpUnicastServiceNumber, DnsSrpUnicast::ServerData(aAddress, aPort… in AddDnsSrpUnicastServiceWithAddrInServerData()
341 AddrData(const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion) in AddrData() argument
342 : mAddress(aAddress) in AddrData()
370 ServiceData(const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion) in ServiceData() argument
372 , mAddrData(aAddress, aPort, aVersion) in ServiceData()
[all …]
Dmlr_manager.hpp146 …bool IsEmptyOrContains(const Ip6::Address &aAddress) const { return IsEmpty() || Contains(aAddress in IsEmptyOrContains()
147 void AddUnique(const Ip6::Address &aAddress);
179 bool IsAddressMlrRegisteredByNetif(const Ip6::Address &aAddress) const;
183 bool IsAddressMlrRegisteredByAnyChild(const Ip6::Address &aAddress) const in IsAddressMlrRegisteredByAnyChild()
185 return IsAddressMlrRegisteredByAnyChildExcept(aAddress, nullptr); in IsAddressMlrRegisteredByAnyChild()
187 …bool IsAddressMlrRegisteredByAnyChildExcept(const Ip6::Address &aAddress, const Child *aExceptChil…
Dnetwork_data_publisher.hpp154 void PublishDnsSrpServiceUnicast(const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion) in PublishDnsSrpServiceUnicast() argument
156 mDnsSrpServiceEntry.PublishUnicast(aAddress, aPort, aVersion); in PublishDnsSrpServiceUnicast()
378 void PublishUnicast(const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion);
407 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
413 …static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort, uint8_t aVersion) in InfoUnicast() argument
415 return Info(aType, aPort, aVersion, &aAddress); in InfoUnicast()
419 …o(Type aType, uint16_t aPortOrSeqNumber, uint8_t aVersion, const Ip6::Address *aAddress = nullptr);
/openthread-latest/src/core/api/
Dip6_api.cpp71 bool otIp6HasUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6HasUnicastAddress() argument
73 return AsCoreType(aInstance).Get<ThreadNetif>().HasUnicastAddress(AsCoreType(aAddress)); in otIp6HasUnicastAddress()
76 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress) in otIp6AddUnicastAddress() argument
78 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress()
81 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6RemoveUnicastAddress() argument
83 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress()
91 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6SubscribeMulticastAddress() argument
93 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress()
96 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6UnsubscribeMulticastAddress() argument
98 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress()
[all …]
Dcommissioner_api.cpp128 const otIp6Address *aAddress) in otCommissionerAnnounceBegin() argument
131 aChannelMask, aCount, aPeriod, AsCoreType(aAddress)); in otCommissionerAnnounceBegin()
139 const otIp6Address *aAddress, in otCommissionerEnergyScan() argument
144 aChannelMask, aCount, aPeriod, aScanDuration, AsCoreType(aAddress), aCallback, aContext); in otCommissionerEnergyScan()
150 const otIp6Address *aAddress, in otCommissionerPanIdQuery() argument
155 aPanId, aChannelMask, AsCoreType(aAddress), aCallback, aContext); in otCommissionerPanIdQuery()
/openthread-latest/src/core/backbone_router/
Dbackbone_tmf.cpp128 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()
Dmulticast_listeners_table.cpp46 Error MulticastListenersTable::Add(const Ip6::Address &aAddress, Time aExpireTime) in Add() argument
50 VerifyOrExit(aAddress.IsMulticastLargerThanRealmLocal(), error = kErrorInvalidArgs); in Add()
56 if (listener.GetAddress() == aAddress) in Add()
66 mListeners[mNumValidListeners].SetAddress(aAddress); in Add()
72 mCallback.InvokeIfSet(MapEnum(Listener::kEventAdded), &aAddress); in Add()
75 Log(kAdd, aAddress, aExpireTime, error); in Add()
80 void MulticastListenersTable::Remove(const Ip6::Address &aAddress) in Remove() argument
88 if (listener.GetAddress() == aAddress) in Remove()
98 mCallback.InvokeIfSet(MapEnum(Listener::kEventRemoved), &aAddress); in Remove()
105 Log(kRemove, aAddress, TimeMilli(0), error); in Remove()
[all …]
Dmulticast_listeners_table.hpp100 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
130 Error Add(const Ip6::Address &aAddress, TimeMilli aExpireTime);
137 void Remove(const Ip6::Address &aAddress);
210 … void Log(Action aAction, const Ip6::Address &aAddress, TimeMilli aExpireTime, Error aError) const;
Dbackbone_tmf.hpp83 void SubscribeMulticast(const Ip6::Address &aAddress);
90 void UnsubscribeMulticast(const Ip6::Address &aAddress);
98 void LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const;
/openthread-latest/src/core/utils/
Dslaac_address.cpp97 Error Slaac::FindDomainIdFor(const Ip6::Address &aAddress, uint8_t &aDomainId) const in FindDomainIdFor() argument
108 if (aAddress.PrefixMatch(slaacAddr.GetAddress()) >= Ip6::NetworkPrefix::kLength) in FindDomainIdFor()
223 void Slaac::DeprecateAddress(SlaacAddress &aAddress) in DeprecateAddress() argument
225 LogAddress(kDeprecating, aAddress); in DeprecateAddress()
227 aAddress.SetExpirationTime(TimerMilli::GetNow() + kDeprecationInterval); in DeprecateAddress()
228 mTimer.FireAtIfEarlier(aAddress.GetExpirationTime()); in DeprecateAddress()
230 Get<ThreadNetif>().UpdatePreferredFlagOn(aAddress, false); in DeprecateAddress()
244 void Slaac::RemoveAddress(SlaacAddress &aAddress) in RemoveAddress() argument
246 LogAddress(kRemoving, aAddress); in RemoveAddress()
248 Get<ThreadNetif>().RemoveUnicastAddress(aAddress); in RemoveAddress()
[all …]
Dslaac_address.hpp135 Error GenerateIid(Ip6::Netif::UnicastAddress &aAddress, uint8_t &aDadCounter) const;
151 Error FindDomainIdFor(const Ip6::Address &aAddress, uint8_t &aDomainId) const;
205 void DeprecateAddress(SlaacAddress &aAddress);
206 void RemoveAddress(SlaacAddress &aAddress);
212 void LogAddress(Action aAction, const SlaacAddress &aAddress);
/openthread-latest/src/cli/
Dcli_link_metrics.hpp87 static void HandleLinkMetricsReport(const otIp6Address *aAddress,
92 void HandleLinkMetricsReport(const otIp6Address *aAddress,
96 … static void HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress,
99 … void HandleLinkMetricsConfigForwardTrackingSeriesMgmtResponse(const otIp6Address *aAddress,
101 static void HandleLinkMetricsConfigEnhAckProbingMgmtResponse(const otIp6Address *aAddress,
104 …void HandleLinkMetricsConfigEnhAckProbingMgmtResponse(const otIp6Address *aAddress, otLinkMetricsS…
105 void HandleLinkMetricsMgmtResponse(const otIp6Address *aAddress, otLinkMetricsStatus aStatus);
Dcli_link_metrics.cpp446 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/
Dtest_lowpan.hpp74 void SetMacSource(const uint8_t *aAddress) { mMacAddrs.mSource.SetExtended(aAddress); } in SetMacSource() argument
81 void SetMacSource(uint16_t aAddress) { mMacAddrs.mSource.SetShort(aAddress); } in SetMacSource() argument
88 … void SetMacDestination(const uint8_t *aAddress) { mMacAddrs.mDestination.SetExtended(aAddress); } in SetMacDestination() argument
95 void SetMacDestination(uint16_t aAddress) { mMacAddrs.mDestination.SetShort(aAddress); } in SetMacDestination() argument
/openthread-latest/include/openthread/
Dip6.h284 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress);
296 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress);
316 bool otIp6HasUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress);
334 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
346 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
574 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress);
604 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize);
657 void otIp6GetPrefix(const otIp6Address *aAddress, uint8_t aLength, otIp6Prefix *aPrefix);
667 bool otIp6IsAddressUnspecified(const otIp6Address *aAddress);
/openthread-latest/tests/nexus/platform/
Dnexus_radio.cpp272 bool Radio::Matches(const Mac::Address &aAddress, Mac::PanId aPanId) const in Matches() argument
276 if (aAddress.IsShort()) in Matches()
278 VerifyOrExit(aAddress.IsBroadcast() || aAddress.GetShort() == mShortAddress); in Matches()
280 else if (aAddress.IsExtended()) in Matches()
282 VerifyOrExit(aAddress.GetExtended() == mExtAddress); in Matches()
296 bool Radio::HasFramePendingFor(const Mac::Address &aAddress) const in HasFramePendingFor()
307 if (aAddress.IsShort()) in HasFramePendingFor()
309 hasPending = mSrcMatchShortEntries.Contains(aAddress.GetShort()); in HasFramePendingFor()
311 else if (aAddress.IsExtended()) in HasFramePendingFor()
313 hasPending = mSrcMatchExtEntries.Contains(aAddress.GetExtended()); in HasFramePendingFor()

123456