Home
last modified time | relevance | path

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

12345

/openthread-3.5.0/src/core/net/
Dnetif.cpp92 bool Netif::IsMulticastSubscribed(const Address &aAddress) const in IsMulticastSubscribed()
94 return mMulticastAddresses.ContainsMatching(aAddress); in IsMulticastSubscribed()
240 void Netif::SignalMulticastAddressChange(AddressEvent aEvent, const MulticastAddress &aAddress, Add… in SignalMulticastAddressChange() argument
245 Get<Utils::HistoryTracker>().RecordAddressEvent(aEvent, aAddress, aOrigin); in SignalMulticastAddressChange()
252 info.mAddress = &aAddress.GetAddress(); in SignalMulticastAddressChange()
254 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 …]
Dnetif.hpp219 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
266 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
395 void AddUnicastAddress(UnicastAddress &aAddress);
408 void RemoveUnicastAddress(const UnicastAddress &aAddress);
419 bool HasUnicastAddress(const Address &aAddress) const;
430 …bool HasUnicastAddress(const UnicastAddress &aAddress) const { return mUnicastAddresses.Contains(a… in HasUnicastAddress()
441 bool IsUnicastAddressExternal(const UnicastAddress &aAddress) const;
457 Error AddExternalUnicastAddress(const UnicastAddress &aAddress);
469 Error RemoveExternalUnicastAddress(const Address &aAddress);
487 bool IsMulticastSubscribed(const Address &aAddress) const;
[all …]
Dsocket.hpp92 void SetSockAddr(const Address &aAddress) { mSockAddr = aAddress; } in SetSockAddr() argument
132 void SetPeerAddr(const Address &aAddress) { mPeerAddr = aAddress; } in SetPeerAddr() argument
290 SockAddr(const Address &aAddress, uint16_t aPort) in SockAddr() argument
292 mAddress = aAddress; in SockAddr()
318 void SetAddress(const Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
/openthread-3.5.0/src/core/thread/
Dchild.cpp142 Error Child::GetMeshLocalIp6Address(Ip6::Address &aAddress) const in GetMeshLocalIp6Address()
148 aAddress.SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetMeshLocalIp6Address()
149 aAddress.SetIid(mMeshLocalIid); in GetMeshLocalIp6Address()
155 Error Child::AddIp6Address(const Ip6::Address &aAddress) in AddIp6Address() argument
159 VerifyOrExit(!aAddress.IsUnspecified(), error = kErrorInvalidArgs); in AddIp6Address()
161 if (Get<Mle::MleRouter>().IsMeshLocalAddress(aAddress)) in AddIp6Address()
164 mMeshLocalIid = aAddress.GetIid(); in AddIp6Address()
172 ip6Address = aAddress; in AddIp6Address()
176 VerifyOrExit(ip6Address != aAddress, error = kErrorAlready); in AddIp6Address()
185 Error Child::RemoveIp6Address(const Ip6::Address &aAddress) in RemoveIp6Address() argument
[all …]
Dmlr_manager.hpp180 bool IsAddressMlrRegisteredByNetif(const Ip6::Address &aAddress) const;
184 bool IsAddressMlrRegisteredByAnyChild(const Ip6::Address &aAddress) const in IsAddressMlrRegisteredByAnyChild()
186 return IsAddressMlrRegisteredByAnyChildExcept(aAddress, nullptr); in IsAddressMlrRegisteredByAnyChild()
188 …bool IsAddressMlrRegisteredByAnyChildExcept(const Ip6::Address &aAddress, const Child *aExceptChil…
198 const Ip6::Address &aAddress);
201 const Ip6::Address &aAddress);
Dchild.hpp256 Error GetMeshLocalIp6Address(Ip6::Address &aAddress) const;
299 Error AddIp6Address(const Ip6::Address &aAddress);
311 Error RemoveIp6Address(const Ip6::Address &aAddress);
322 bool HasIp6Address(const Ip6::Address &aAddress) const;
452 MlrState GetAddressMlrState(const Ip6::Address &aAddress) const;
463 void SetAddressMlrState(const Ip6::Address &aAddress, MlrState aState);
474 bool HasMlrRegisteredAddress(const Ip6::Address &aAddress) const;
Dnetwork_data_publisher.hpp156 void PublishDnsSrpServiceUnicast(const Ip6::Address &aAddress, uint16_t aPort) in PublishDnsSrpServiceUnicast() argument
158 mDnsSrpServiceEntry.PublishUnicast(aAddress, aPort); in PublishDnsSrpServiceUnicast()
389 void PublishUnicast(const Ip6::Address &aAddress, uint16_t aPort);
417 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
420 static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort) in InfoUnicast() argument
422 return Info(aType, aPort, &aAddress); in InfoUnicast()
426 Info(Type aType, uint16_t aPortOrSeqNumber, const Ip6::Address *aAddress = nullptr);
/openthread-3.5.0/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.cpp54 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 …]
Dmulticast_listeners_table.hpp105 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;
Dbackbone_tmf.hpp88 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-3.5.0/src/core/api/
Dip6_api.cpp78 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress) in otIp6AddUnicastAddress() argument
80 return AsCoreType(aInstance).Get<ThreadNetif>().AddExternalUnicastAddress(AsCoreType(aAddress)); in otIp6AddUnicastAddress()
83 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6RemoveUnicastAddress() argument
85 …return AsCoreType(aInstance).Get<ThreadNetif>().RemoveExternalUnicastAddress(AsCoreType(aAddress)); in otIp6RemoveUnicastAddress()
93 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6SubscribeMulticastAddress() argument
95 … return AsCoreType(aInstance).Get<ThreadNetif>().SubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6SubscribeMulticastAddress()
98 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress) in otIp6UnsubscribeMulticastAddress() argument
100 …return AsCoreType(aInstance).Get<ThreadNetif>().UnsubscribeExternalMulticast(AsCoreType(aAddress)); in otIp6UnsubscribeMulticastAddress()
185 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress) in otIp6AddressFromString() argument
187 return AsCoreType(aAddress).FromString(aString); in otIp6AddressFromString()
[all …]
Dcommissioner_api.cpp131 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()
Ddns_api.cpp135 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-3.5.0/tests/unit/
Dtest_lowpan.hpp76 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-3.5.0/src/posix/platform/
Dmulticast_routing.hpp109 void Add(const Ip6::Address &aAddress);
110 void Remove(const Ip6::Address &aAddress);
111 void UpdateMldReport(const Ip6::Address &aAddress, bool isAdd);
112 bool HasMulticastListener(const Ip6::Address &aAddress) const;
131 … const otIp6Address *aAddress);
133 … const Ip6::Address &aAddress);
Dmulticast_routing.cpp91 … const otIp6Address *aAddress) in HandleBackboneMulticastListenerEvent() argument
94 aEvent, static_cast<const Ip6::Address &>(*aAddress)); in HandleBackboneMulticastListenerEvent()
98 … const Ip6::Address &aAddress) in HandleBackboneMulticastListenerEvent() argument
103 Add(aAddress); in HandleBackboneMulticastListenerEvent()
106 Remove(aAddress); in HandleBackboneMulticastListenerEvent()
129 void MulticastRoutingManager::Add(const Ip6::Address &aAddress) in Add() argument
133 UnblockInboundMulticastForwardingCache(aAddress); in Add()
134 UpdateMldReport(aAddress, true); in Add()
136 …LogResult(OT_ERROR_NONE, "MulticastRoutingManager: %s: %s", __FUNCTION__, aAddress.ToString().AsCS… in Add()
142 void MulticastRoutingManager::Remove(const Ip6::Address &aAddress) in Remove() argument
[all …]
Dip6_utils.hpp51 Ip6AddressString(const void *aAddress) in Ip6AddressString() argument
53 …VerifyOrDie(inet_ntop(AF_INET6, aAddress, mBuffer, sizeof(mBuffer)) != nullptr, OT_EXIT_ERROR_ERRN… in Ip6AddressString()
Dfirewall.cpp64 otError AddToIpSet(const char *aSetName, const char *aAddress);
73 inline otError IpSetManager::AddToIpSet(const char *aSetName, const char *aAddress) in AddToIpSet() argument
75 return ExecuteCommand("%s add %s %s -exist", kIpsetCommand, aSetName, aAddress); in AddToIpSet()
/openthread-3.5.0/include/openthread/
Dip6.h300 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress);
312 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress);
340 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
353 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
619 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress);
651 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize);
708 void otIp6GetPrefix(const otIp6Address *aAddress, uint8_t aLength, otIp6Prefix *aPrefix);
719 bool otIp6IsAddressUnspecified(const otIp6Address *aAddress);
/openthread-3.5.0/src/core/utils/
Dparse_cmdline.hpp185 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()
Dslaac_address.cpp258 Error Slaac::GenerateIid(Ip6::Netif::UnicastAddress &aAddress, in GenerateIid() argument
293 sha256.Update(aAddress.mAddress.mFields.m8, BitVectorBytes(aAddress.mPrefixLength)); in GenerateIid()
305 aAddress.GetAddress().GetIid().SetBytes(hash.GetBytes()); in GenerateIid()
308 if (aAddress.GetAddress().GetIid().IsReserved()) in GenerateIid()
/openthread-3.5.0/src/core/meshcop/
Dannounce_begin_client.cpp61 const Ip6::Address &aAddress) in SendRequest() argument
71 SuccessOrExit(error = message->InitAsPost(aAddress, kUriAnnounceBegin)); in SendRequest()
84 messageInfo.SetSockAddrToRlocPeerAddrTo(aAddress); in SendRequest()
/openthread-3.5.0/examples/platforms/simulation/
Dinfra_if.c34 bool otPlatInfraIfHasAddress(uint32_t aInfraIfIndex, const otIp6Address *aAddress) in otPlatInfraIfHasAddress() argument
37 OT_UNUSED_VARIABLE(aAddress); in otPlatInfraIfHasAddress()
/openthread-3.5.0/include/openthread/platform/
Dudp.h130 const otIp6Address *aAddress);
147 const otIp6Address *aAddress);

12345