| /openthread-latest/src/core/net/ |
| D | srp_advertising_proxy.cpp | 163 template <> void AdvertisingProxy::UpdateAdvIdRangeOn(Host &aHost) in UpdateAdvIdRangeOn() argument 168 aHost.mAdvIdRange.Clear(); in UpdateAdvIdRangeOn() 170 for (const Service &service : aHost.mServices) in UpdateAdvIdRangeOn() 174 aHost.mAdvIdRange.Add(service.mKeyAdvId); in UpdateAdvIdRangeOn() 179 aHost.mAdvIdRange.Add(service.mAdvId); in UpdateAdvIdRangeOn() 183 if (aHost.mKeyAdvId != kInvalidRequestId) in UpdateAdvIdRangeOn() 185 aHost.mAdvIdRange.Add(aHost.mKeyAdvId); in UpdateAdvIdRangeOn() 188 if (aHost.mAdvId != kInvalidRequestId) in UpdateAdvIdRangeOn() 190 aHost.mAdvIdRange.Add(aHost.mAdvId); in UpdateAdvIdRangeOn() 193 if (aHost.mAdvIdRange.IsEmpty()) in UpdateAdvIdRangeOn() [all …]
|
| D | srp_server.cpp | 297 const Server::Host *Server::GetNextHost(const Server::Host *aHost) in GetNextHost() argument 299 return (aHost == nullptr) ? mHosts.GetHead() : aHost->GetNext(); in GetNextHost() 302 void Server::RemoveHost(Host *aHost, RetainName aRetainName) in RemoveHost() argument 304 VerifyOrExit(aHost != nullptr); in RemoveHost() 306 aHost->mLease = 0; in RemoveHost() 307 aHost->ClearResources(); in RemoveHost() 311 LogInfo("Remove host %s (but retain its name)", aHost->GetFullName()); in RemoveHost() 315 aHost->mKeyLease = 0; in RemoveHost() 316 IgnoreError(mHosts.Remove(*aHost)); in RemoveHost() 317 LogInfo("Fully remove host %s", aHost->GetFullName()); in RemoveHost() [all …]
|
| D | srp_advertising_proxy.hpp | 120 void Advertise(Host &aHost, const Server::MessageMetadata &aMetadata); 138 void AdvertiseRemovalOf(Host &aHost); 236 AdvInfo(Host &aHost, const Server::MessageMetadata &aMetadata, uint32_t aTimeout); 264 void Advertise(Host &aHost); 265 void UnregisterHostAndItsServicesAndKeys(Host &aHost); 266 bool CompareAndUpdateHostAndServices(Host &aHost, Host &aExistingHost); 267 bool CompareAndUpdateHost(Host &aHost, Host &aExistingHost); 269 void RegisterHost(Host &aHost); 270 void UnregisterHost(Host &aHost); 273 void RegisterKey(Host &aHost); [all …]
|
| D | srp_server.hpp | 386 …Error Init(const char *aInstanceName, const char *aInstanceLabel, Host &aHost, TimeMilli aUpdateTi… 816 const Host *GetNextHost(const Host *aHost); 892 UpdateMetadata(Instance &aInstance, Host &aHost, const MessageMetadata &aMessageMetadata); 925 void InformUpdateHandlerOrCommit(Error aError, Host &aHost, const MessageMetadata &aMetadata); 926 void CommitSrpUpdate(Error aError, Host &aHost, const MessageMetadata &aMessageMetadata); 929 Host &aHost, 941 …Error ProcessUpdateSection(Host &aHost, const Message &aMessage, MessageMetadata &aMetadata) const; 942 …Error ProcessAdditionalSection(Host *aHost, const Message &aMessage, MessageMetadata &aMetadata) c… 951 Error ProcessHostDescriptionInstruction(Host &aHost, 954 Error ProcessServiceDiscoveryInstructions(Host &aHost, [all …]
|
| D | dnssd.cpp | 164 void Dnssd::RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback) in RegisterHost() argument 173 IgnoreError(Get<Dns::Multicast::Core>().RegisterHost(aHost, aRequestId, aCallback)); in RegisterHost() 179 otPlatDnssdRegisterHost(&GetInstance(), &aHost, aRequestId, aCallback); in RegisterHost() 186 void Dnssd::UnregisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback) in UnregisterHost() argument 195 IgnoreError(Get<Dns::Multicast::Core>().UnregisterHost(aHost)); in UnregisterHost() 203 otPlatDnssdUnregisterHost(&GetInstance(), &aHost, aRequestId, aCallback); in UnregisterHost()
|
| D | dnssd.hpp | 246 void RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback); 258 void UnregisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback);
|
| D | ip4_types.cpp | 121 void Address::SynthesizeFromCidrAndHost(const Cidr &aCidr, const uint32_t aHost) in SynthesizeFromCidrAndHost() argument 123 …mFields.m32 = (aCidr.mAddress.mFields.m32 & aCidr.SubnetMask()) | (BigEndian::HostSwap32(aHost) & … in SynthesizeFromCidrAndHost()
|
| D | mdns.hpp | 235 Error RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback); 255 Error UnregisterHost(const Host &aHost); 581 Error GetNextHost(Iterator &aIterator, Host &aHost, EntryState &aState) const; 1034 … Error Init(Instance &aInstance, const Host &aHost) { return Init(aInstance, aHost.mHostName); } in Init() argument 1038 bool Matches(const Host &aHost) const; 1043 void Register(const Host &aHost, const Callback &aCallback); 1045 void Unregister(const Host &aHost); 1054 Error CopyInfoTo(Host &aHost, EntryState &aState) const; 1141 void DiscoverOffsetsAndHost(HostEntry *&aHost); 1892 Error GetNextHost(Host &aHost, EntryState &aState);
|
| D | mdns.cpp | 174 Error Core::RegisterHost(const Host &aHost, RequestId aRequestId, RegisterCallback aCallback) in RegisterHost() argument 176 return Register<HostEntry>(aHost, aRequestId, aCallback); in RegisterHost() 179 Error Core::UnregisterHost(const Host &aHost) { return Unregister<HostEntry>(aHost); } in UnregisterHost() argument 205 Error Core::GetNextHost(Iterator &aIterator, Host &aHost, EntryState &aState) const in GetNextHost() argument 207 return static_cast<EntryIterator &>(aIterator).GetNextHost(aHost, aState); in GetNextHost() 1486 bool Core::HostEntry::Matches(const Host &aHost) const { return NameMatch(mName, aHost.mHostName); } in Matches() 1494 void Core::HostEntry::Register(const Host &aHost, const Callback &aCallback) in Register() argument 1503 if (aHost.mAddressesLength == 0) in Register() 1509 Unregister(aHost); in Register() 1521 mAddrRecord.UpdateTtl(DetermineTtl(aHost.mTtl, kDefaultTtl)); in Register() [all …]
|
| /openthread-latest/src/core/api/ |
| D | srp_server_api.cpp | 125 const otSrpServerHost *otSrpServerGetNextHost(otInstance *aInstance, const otSrpServerHost *aHost) in otSrpServerGetNextHost() argument 127 return AsCoreType(aInstance).Get<Srp::Server>().GetNextHost(AsCoreTypePtr(aHost)); in otSrpServerGetNextHost() 135 bool otSrpServerHostIsDeleted(const otSrpServerHost *aHost) { return AsCoreType(aHost).IsDeleted();… in otSrpServerHostIsDeleted() argument 137 const char *otSrpServerHostGetFullName(const otSrpServerHost *aHost) { return AsCoreType(aHost).Get… in otSrpServerHostGetFullName() argument 139 bool otSrpServerHostMatchesFullName(const otSrpServerHost *aHost, const char *aFullName) in otSrpServerHostMatchesFullName() argument 141 return AsCoreType(aHost).Matches(aFullName); in otSrpServerHostMatchesFullName() 144 const otIp6Address *otSrpServerHostGetAddresses(const otSrpServerHost *aHost, uint8_t *aAddressesNu… in otSrpServerHostGetAddresses() argument 146 return AsCoreType(aHost).GetAddresses(*aAddressesNum); in otSrpServerHostGetAddresses() 149 void otSrpServerHostGetLeaseInfo(const otSrpServerHost *aHost, otSrpServerLeaseInfo *aLeaseInfo) in otSrpServerHostGetLeaseInfo() argument 151 AsCoreType(aHost).GetLeaseInfo(*aLeaseInfo); in otSrpServerHostGetLeaseInfo() [all …]
|
| D | mdns_api.cpp | 65 const otMdnsHost *aHost, in otMdnsRegisterHost() argument 69 AssertPointerIsNotNull(aHost); in otMdnsRegisterHost() 71 …return AsCoreType(aInstance).Get<Dns::Multicast::Core>().RegisterHost(*aHost, aRequestId, aCallbac… in otMdnsRegisterHost() 74 otError otMdnsUnregisterHost(otInstance *aInstance, const otMdnsHost *aHost) in otMdnsUnregisterHost() argument 76 AssertPointerIsNotNull(aHost); in otMdnsUnregisterHost() 78 return AsCoreType(aInstance).Get<Dns::Multicast::Core>().UnregisterHost(*aHost); in otMdnsUnregisterHost() 129 otError otMdnsGetNextHost(otInstance *aInstance, otMdnsIterator *aIterator, otMdnsHost *aHost, otMd… in otMdnsGetNextHost() argument 132 AssertPointerIsNotNull(aHost); in otMdnsGetNextHost() 135 … return AsCoreType(aInstance).Get<Dns::Multicast::Core>().GetNextHost(*aIterator, *aHost, *aState); in otMdnsGetNextHost()
|
| /openthread-latest/include/openthread/ |
| D | srp_server.h | 348 const otSrpServerHost *aHost, 386 const otSrpServerHost *otSrpServerGetNextHost(otInstance *aInstance, const otSrpServerHost *aHost); 407 bool otSrpServerHostIsDeleted(const otSrpServerHost *aHost); 416 const char *otSrpServerHostGetFullName(const otSrpServerHost *aHost); 430 bool otSrpServerHostMatchesFullName(const otSrpServerHost *aHost, const char *aFullName); 440 const otIp6Address *otSrpServerHostGetAddresses(const otSrpServerHost *aHost, uint8_t *aAddressesNu… 448 void otSrpServerHostGetLeaseInfo(const otSrpServerHost *aHost, otSrpServerLeaseInfo *aLeaseInfo); 458 const otSrpServerService *otSrpServerHostGetNextService(const otSrpServerHost *aHost,
|
| D | mdns.h | 242 const otMdnsHost *aHost, 265 otError otMdnsUnregisterHost(otInstance *aInstance, const otMdnsHost *aHost); 432 otMdnsHost *aHost,
|
| /openthread-latest/examples/platforms/simulation/ |
| D | dnssd.c | 64 const otPlatDnssdHost *aHost, in otPlatDnssdRegisterHost() argument 69 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdRegisterHost() 75 const otPlatDnssdHost *aHost, in otPlatDnssdUnregisterHost() argument 80 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdUnregisterHost()
|
| /openthread-latest/src/ncp/platform/ |
| D | dnssd.cpp | 65 const otPlatDnssdHost *aHost, in otPlatDnssdRegisterHost() argument 72 ncp->DnssdRegisterHost(aHost, aRequestId, aCallback); in otPlatDnssdRegisterHost() 76 const otPlatDnssdHost *aHost, in otPlatDnssdUnregisterHost() argument 83 ncp->DnssdUnregisterHost(aHost, aRequestId, aCallback); in otPlatDnssdUnregisterHost()
|
| /openthread-latest/src/lib/spinel/ |
| D | spinel_prop_codec.cpp | 118 otPlatDnssdHost &aHost, in DecodeDnssdHost() argument 125 SuccessOrExit(error = aDecoder.ReadUtf8(aHost.mHostName)); in DecodeDnssdHost() 126 SuccessOrExit(error = aDecoder.ReadUint16(aHost.mAddressesLength)); in DecodeDnssdHost() 127 SuccessOrExit(error = aDecoder.ReadIp6Address(aHost.mAddresses)); in DecodeDnssdHost()
|
| D | spinel_prop_codec.hpp | 73 otPlatDnssdHost &aHost,
|
| /openthread-latest/include/openthread/platform/ |
| D | dnssd.h | 293 const otPlatDnssdHost *aHost, 330 const otPlatDnssdHost *aHost,
|
| /openthread-latest/src/cli/ |
| D | cli_srp_server.hpp | 85 void OutputHostAddresses(const otSrpServerHost *aHost);
|
| D | cli_mdns.cpp | 89 void Mdns::OutputHost(const otMdnsHost &aHost) in OutputHost() argument 91 OutputLine("Host %s", aHost.mHostName); in OutputHost() 92 OutputLine(kIndentSize, "%u address:", aHost.mAddressesLength); in OutputHost() 94 for (uint16_t index = 0; index < aHost.mAddressesLength; index++) in OutputHost() 97 OutputIp6AddressLine(aHost.mAddresses[index]); in OutputHost() 100 OutputLine(kIndentSize, "ttl: %lu", ToUlong(aHost.mTtl)); in OutputHost()
|
| D | cli_srp_server.cpp | 360 void SrpServer::OutputHostAddresses(const otSrpServerHost *aHost) in OutputHostAddresses() argument 365 addresses = otSrpServerHostGetAddresses(aHost, &addressesNum); in OutputHostAddresses()
|
| D | cli_mdns.hpp | 107 void OutputHost(const otMdnsHost &aHost);
|
| /openthread-latest/tests/fuzz/ |
| D | fuzzer_platform.cpp | 576 const otPlatDnssdHost *aHost, in otPlatDnssdRegisterHost() argument 581 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdRegisterHost() 587 const otPlatDnssdHost *aHost, in otPlatDnssdUnregisterHost() argument 592 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdUnregisterHost()
|
| /openthread-latest/tests/unit/ |
| D | test_srp_adv_proxy.cpp | 253 const otPlatDnssdHost *aHost, in otPlatDnssdRegisterHost() argument 258 Log(" hostName : %s", aHost->mHostName); in otPlatDnssdRegisterHost() 259 Log(" numAddresses : %u", aHost->mAddressesLength); in otPlatDnssdRegisterHost() 261 for (uint16_t index = 0; index < aHost->mAddressesLength; index++) in otPlatDnssdRegisterHost() 263 …Log(" Address %-4u : %s", index, AsCoreType(&aHost->mAddresses[index]).ToString().AsCString()); in otPlatDnssdRegisterHost() 266 Log(" TTL : %u", aHost->mTtl); in otPlatDnssdRegisterHost() 267 Log(" Infra-if index : %u", aHost->mInfraIfIndex); in otPlatDnssdRegisterHost() 270 VerifyOrQuit(aHost->mInfraIfIndex == kInfraIfIndex); in otPlatDnssdRegisterHost() 272 sDnssdNumHostAddresses = aHost->mAddressesLength; in otPlatDnssdRegisterHost() 276 …t(StringMatch(AsCoreType(aInstance).Get<Srp::Client>().GetHostInfo().GetName(), aHost->mHostName)); in otPlatDnssdRegisterHost() [all …]
|
| D | test_platform.cpp | 863 const otPlatDnssdHost *aHost, in otPlatDnssdRegisterHost() argument 868 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdRegisterHost() 874 const otPlatDnssdHost *aHost, in otPlatDnssdUnregisterHost() argument 879 OT_UNUSED_VARIABLE(aHost); in otPlatDnssdUnregisterHost()
|