Home
last modified time | relevance | path

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

12345

/external/openthread/src/core/net/
Dnetif.cpp49 explicit AddressInfo(const Netif::UnicastAddress &aAddress) in AddressInfo() argument
51 mAddress = &aAddress.mAddress; in AddressInfo()
52 mPrefixLength = aAddress.mPrefixLength; in AddressInfo()
53 mScope = aAddress.GetScope(); in AddressInfo()
54 mPreferred = aAddress.mPreferred; in AddressInfo()
57 explicit AddressInfo(const Netif::MulticastAddress &aAddress) in AddressInfo() argument
59 mAddress = &aAddress.GetAddress(); in AddressInfo()
61 mScope = aAddress.GetAddress().GetScope(); in AddressInfo()
118 bool Netif::IsMulticastSubscribed(const Address &aAddress) const in IsMulticastSubscribed()
120 return mMulticastAddresses.ContainsMatching(aAddress); in IsMulticastSubscribed()
[all …]
Dnetif.hpp218 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
265 bool Matches(const Address &aAddress) const { return GetAddress() == aAddress; } in Matches()
391 void AddUnicastAddress(UnicastAddress &aAddress);
404 void RemoveUnicastAddress(const UnicastAddress &aAddress);
415 bool HasUnicastAddress(const Address &aAddress) const;
426 …bool HasUnicastAddress(const UnicastAddress &aAddress) const { return mUnicastAddresses.Contains(a… in HasUnicastAddress()
437 bool IsUnicastAddressExternal(const UnicastAddress &aAddress) const;
453 Error AddExternalUnicastAddress(const UnicastAddress &aAddress);
465 Error RemoveExternalUnicastAddress(const Address &aAddress);
483 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
Dip6_mpl.hpp204 void InitOption(OptionMpl &aOption, const Address &aAddress);
222 … Error ProcessOption(Message &aMessage, const Address &aAddress, bool aIsOutbound, bool &aReceive);
246 void SetMatchingAddress(const Address &aAddress) { mMatchingAddress = &aAddress; } in SetMatchingAddress() argument
/external/openthread/src/core/thread/
Dtopology.cpp331 Error Child::GetMeshLocalIp6Address(Ip6::Address &aAddress) const in GetMeshLocalIp6Address()
337 aAddress.SetPrefix(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetMeshLocalIp6Address()
338 aAddress.SetIid(mMeshLocalIid); in GetMeshLocalIp6Address()
344 Error Child::AddIp6Address(const Ip6::Address &aAddress) in AddIp6Address() argument
348 VerifyOrExit(!aAddress.IsUnspecified(), error = kErrorInvalidArgs); in AddIp6Address()
350 if (Get<Mle::MleRouter>().IsMeshLocalAddress(aAddress)) in AddIp6Address()
353 mMeshLocalIid = aAddress.GetIid(); in AddIp6Address()
361 ip6Address = aAddress; in AddIp6Address()
365 VerifyOrExit(ip6Address != aAddress, error = kErrorAlready); in AddIp6Address()
374 Error Child::RemoveIp6Address(const Ip6::Address &aAddress) in RemoveIp6Address() argument
[all …]
Dmlr_manager.hpp179 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…
197 const Ip6::Address &aAddress);
200 const Ip6::Address &aAddress);
Dnetwork_data_publisher.hpp150 void PublishDnsSrpServiceUnicast(const Ip6::Address &aAddress, uint16_t aPort) in PublishDnsSrpServiceUnicast() argument
152 mDnsSrpServiceEntry.PublishUnicast(aAddress, aPort); in PublishDnsSrpServiceUnicast()
344 void PublishUnicast(const Ip6::Address &aAddress, uint16_t aPort);
372 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
375 static Info InfoUnicast(Type aType, const Ip6::Address &aAddress, uint16_t aPort) in InfoUnicast() argument
377 return Info(aType, aPort, &aAddress); in InfoUnicast()
381 Info(Type aType, uint16_t aPortOrSeqNumber, const Ip6::Address *aAddress = nullptr);
Dtopology.hpp385 void SetExtAddress(const Mac::ExtAddress &aAddress) { mMacAddr = aAddress; } in SetExtAddress() argument
1047 Error GetMeshLocalIp6Address(Ip6::Address &aAddress) const;
1090 Error AddIp6Address(const Ip6::Address &aAddress);
1102 Error RemoveIp6Address(const Ip6::Address &aAddress);
1113 bool HasIp6Address(const Ip6::Address &aAddress) const;
1239 MlrState GetAddressMlrState(const Ip6::Address &aAddress) const;
1250 void SetAddressMlrState(const Ip6::Address &aAddress, MlrState aState);
1261 bool HasMlrRegisteredAddress(const Ip6::Address &aAddress) const;
/external/openthread/src/core/backbone_router/
Dbackbone_tmf.cpp80 void BackboneTmfAgent::SubscribeMulticast(const Ip6::Address &aAddress) in SubscribeMulticast() argument
82 Error error = mSocket.JoinNetifMulticastGroup(OT_NETIF_BACKBONE, aAddress); in SubscribeMulticast()
84 LogError("Backbone TMF subscribes", aAddress, error); in SubscribeMulticast()
87 void BackboneTmfAgent::UnsubscribeMulticast(const Ip6::Address &aAddress) in UnsubscribeMulticast() argument
89 Error error = mSocket.LeaveNetifMulticastGroup(OT_NETIF_BACKBONE, aAddress); in UnsubscribeMulticast()
91 LogError("Backbone TMF unsubscribes", aAddress, error); in UnsubscribeMulticast()
94 void BackboneTmfAgent::LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const in LogError() argument
97 OT_UNUSED_VARIABLE(aAddress); in LogError()
101 LogInfo("%s %s: %s", aText, aAddress.ToString().AsCString(), ErrorToString(aError)); in LogError()
105 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()
82 mCallback(mCallbackContext, OT_BACKBONE_ROUTER_MULTICAST_LISTENER_ADDED, &aAddress); in Add()
86 LogMulticastListenersTable("Add", aAddress, aExpireTime, error); in Add()
91 void MulticastListenersTable::Remove(const Ip6::Address &aAddress) in Remove() argument
99 if (listener.GetAddress() == aAddress) in Remove()
111 … mCallback(mCallbackContext, OT_BACKBONE_ROUTER_MULTICAST_LISTENER_REMOVED, &aAddress); in Remove()
119 LogMulticastListenersTable("Remove", aAddress, TimeMilli(0), error); in Remove()
[all …]
Dmulticast_listeners_table.hpp93 void SetAddress(const Ip6::Address &aAddress) { mAddress = aAddress; } in SetAddress() argument
127 Error Add(const Ip6::Address &aAddress, TimeMilli aExpireTime);
135 void Remove(const Ip6::Address &aAddress);
211 const Ip6::Address &aAddress,
Dbackbone_tmf.hpp91 void SubscribeMulticast(const Ip6::Address &aAddress);
99 void UnsubscribeMulticast(const Ip6::Address &aAddress);
102 void LogError(const char *aText, const Ip6::Address &aAddress, Error aError) const;
/external/openthread/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()
184 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress) in otIp6AddressFromString() argument
186 return AsCoreType(aAddress).FromString(aString); in otIp6AddressFromString()
[all …]
Ddns_api.cpp115 otIp6Address * aAddress, in otDnsAddressResponseGetAddress() argument
120 …return AsCoreType(aResponse).GetAddress(aIndex, AsCoreType(aAddress), (aTtl != nullptr) ? *aTtl : … in otDnsAddressResponseGetAddress()
159 otIp6Address * aAddress, in otDnsBrowseResponseGetHostAddress() argument
164 …return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), aTtl != nullp… in otDnsBrowseResponseGetHostAddress()
195 otIp6Address * aAddress, in otDnsServiceResponseGetHostAddress() argument
200 return AsCoreType(aResponse).GetHostAddress(aHostName, aIndex, AsCoreType(aAddress), in otDnsServiceResponseGetHostAddress()
Dcommissioner_api.cpp134 const otIp6Address *aAddress) in otCommissionerAnnounceBegin() argument
137 aChannelMask, aCount, aPeriod, AsCoreType(aAddress)); in otCommissionerAnnounceBegin()
145 const otIp6Address * aAddress, in otCommissionerEnergyScan() argument
150 aChannelMask, aCount, aPeriod, aScanDuration, AsCoreType(aAddress), aCallback, aContext); in otCommissionerEnergyScan()
156 const otIp6Address * aAddress, in otCommissionerPanIdQuery() argument
161 aPanId, aChannelMask, AsCoreType(aAddress), aCallback, aContext); in otCommissionerPanIdQuery()
/external/openthread/tests/unit/
Dtest_lowpan.hpp76 void SetMacSource(const uint8_t *aAddress) { mMacSource.SetExtended(aAddress); } in SetMacSource() argument
84 void SetMacSource(uint16_t aAddress) { mMacSource.SetShort(aAddress); } in SetMacSource() argument
92 void SetMacDestination(const uint8_t *aAddress) { mMacDestination.SetExtended(aAddress); } in SetMacDestination() argument
100 void SetMacDestination(uint16_t aAddress) { mMacDestination.SetShort(aAddress); } in SetMacDestination() argument
/external/openthread/src/posix/platform/
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 …]
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);
/external/openthread/include/openthread/
Dip6.h298 otError otIp6AddUnicastAddress(otInstance *aInstance, const otNetifAddress *aAddress);
310 otError otIp6RemoveUnicastAddress(otInstance *aInstance, const otIp6Address *aAddress);
338 otError otIp6SubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
351 otError otIp6UnsubscribeMulticastAddress(otInstance *aInstance, const otIp6Address *aAddress);
617 otError otIp6AddressFromString(const char *aString, otIp6Address *aAddress);
634 void otIp6AddressToString(const otIp6Address *aAddress, char *aBuffer, uint16_t aSize);
691 bool otIp6IsAddressUnspecified(const otIp6Address *aAddress);
/external/ot-br-posix/src/mdns/
Dmdns_mdnssd.cpp543 const std::vector<uint8_t> &aAddress, in PublishHostImpl() argument
554 VerifyOrExit(aAddress.size() == OTBR_IP6_ADDRESS_SIZE, error = OTBR_ERROR_INVALID_ARGS); in PublishHostImpl()
564 aCallback = HandleDuplicateHostRegistration(aName, aAddress, std::move(aCallback)); in PublishHostImpl()
570 … kDNSServiceClass_IN, aAddress.size(), aAddress.data(), /* ttl */ 0, in PublishHostImpl()
573 … new DnssdHostRegistration(aName, aAddress, std::move(aCallback), mHostsRef, recordRef, this))); in PublishHostImpl()
1004 … const struct sockaddr *aAddress, in HandleGetAddrInfoResult() argument
1009 … aErrorCode, aHostName, aAddress, aTtl); in HandleGetAddrInfoResult()
1017 … const struct sockaddr *aAddress, in HandleGetAddrInfoResult() argument
1027 static_cast<unsigned int>(aAddress->sa_family), aErrorCode); in HandleGetAddrInfoResult()
1030 VerifyOrExit((aFlags & kDNSServiceFlagsAdd) && aAddress->sa_family == AF_INET6); in HandleGetAddrInfoResult()
[all …]
Dmdns_mdnssd.hpp93 const std::vector<uint8_t> &aAddress,
139 const std::vector<uint8_t> &aAddress, in DnssdHostRegistration() argument
144 : HostRegistration(aName, aAddress, std::move(aCallback), aPublisher) in DnssdHostRegistration()
222 const struct sockaddr *aAddress,
230 const struct sockaddr *aAddress,
298 const struct sockaddr *aAddress,
306 const struct sockaddr *aAddress,
/external/openthread/examples/platforms/cc2538/
Dradio.c322 void otPlatRadioSetExtendedAddress(otInstance *aInstance, const otExtAddress *aAddress) in otPlatRadioSetExtendedAddress() argument
326 …otLogInfoPlat("ExtAddr=%X%X%X%X%X%X%X%X", aAddress->m8[7], aAddress->m8[6], aAddress->m8[5], aAddr… in otPlatRadioSetExtendedAddress()
327 aAddress->m8[3], aAddress->m8[2], aAddress->m8[1], aAddress->m8[0]); in otPlatRadioSetExtendedAddress()
331 ((volatile uint32_t *)RFCORE_FFSM_EXT_ADDR0)[i] = aAddress->m8[i]; in otPlatRadioSetExtendedAddress()
335 void otPlatRadioSetShortAddress(otInstance *aInstance, uint16_t aAddress) in otPlatRadioSetShortAddress() argument
339 otLogInfoPlat("ShortAddr=%X", aAddress); in otPlatRadioSetShortAddress()
341 HWREG(RFCORE_FFSM_SHORT_ADDR0) = aAddress & 0xFF; in otPlatRadioSetShortAddress()
342 HWREG(RFCORE_FFSM_SHORT_ADDR1) = aAddress >> 8; in otPlatRadioSetShortAddress()
/external/openthread/src/cli/
Dcli_output.hpp299 void OutputIp6Address(const otIp6Address &aAddress);
307 void OutputIp6AddressLine(const otIp6Address &aAddress);
502 void OutputIp6Address(const otIp6Address &aAddress) { mOutput.OutputIp6Address(aAddress); } in OutputIp6Address() argument
503 …void OutputIp6AddressLine(const otIp6Address &aAddress) { mOutput.OutputIp6AddressLine(aAddress); } in OutputIp6AddressLine() argument
/external/openthread/src/core/utils/
Dslaac_address.cpp257 Error Slaac::GenerateIid(Ip6::Netif::UnicastAddress &aAddress, in GenerateIid() argument
292 sha256.Update(aAddress.mAddress.mFields.m8, BitVectorBytes(aAddress.mPrefixLength)); in GenerateIid()
304 aAddress.GetAddress().GetIid().SetBytes(hash.GetBytes()); in GenerateIid()
307 if (aAddress.GetAddress().GetIid().IsReserved()) in GenerateIid()
/external/openthread/src/core/meshcop/
Dannounce_begin_client.cpp61 const Ip6::Address &aAddress) in SendRequest() argument
71 SuccessOrExit(error = message->InitAsPost(aAddress, UriPath::kAnnounceBegin)); in SendRequest()
84 messageInfo.SetSockAddrToRlocPeerAddrTo(aAddress); in SendRequest()

12345