Home
last modified time | relevance | path

Searched refs:GetTtl (Results 1 – 15 of 15) sorted by relevance

/openthread-latest/tests/unit/
Dtest_ip4_header.cpp73 VerifyOrQuit(header.GetTtl() == 0); in TestIp4Header()
86 VerifyOrQuit(header.GetTtl() == kTtl); in TestIp4Header()
Dtest_dns.cpp1305 VerifyOrQuit(ptrRecord.GetTtl() == kTtl, "Read PTR is incorrect"); in TestHeaderAndResourceRecords()
1311 …printf(" \"%s\" PTR %u %d \"%s.%s\"\n", kServiceName, ptrRecord.GetTtl(), ptrRecord.GetLength()… in TestHeaderAndResourceRecords()
1333 VerifyOrQuit(ptrRecord.GetTtl() == kTtl, "Read PTR is incorrect"); in TestHeaderAndResourceRecords()
1335 …printf(" \"%s\" PTR %u %d inst:\"%s\" at \"%s\"\n", kServiceName, ptrRecord.GetTtl(), ptrRecord… in TestHeaderAndResourceRecords()
1378 VerifyOrQuit(srvRecord.GetTtl() == kTtl); in TestHeaderAndResourceRecords()
1384 …printf(" \"%s\" SRV %u %d %d %d %d \"%s\"\n", instanceName, srvRecord.GetTtl(), srvRecord.GetLe… in TestHeaderAndResourceRecords()
1390 VerifyOrQuit(txtRecord.GetTtl() == kTxtTtl); in TestHeaderAndResourceRecords()
1396 … printf(" \"%s\" TXT %u %d \"%s\"\n", instanceName, txtRecord.GetTtl(), txtRecord.GetLength(), in TestHeaderAndResourceRecords()
1410 VerifyOrQuit(aaaaRecord.GetTtl() == kTtl); in TestHeaderAndResourceRecords()
1412 printf(" \"%s\" AAAA %u %d \"%s\"\n", kHostName, aaaaRecord.GetTtl(), aaaaRecord.GetLength(), in TestHeaderAndResourceRecords()
[all …]
Dtest_mdns.cpp279 mTtl = record.GetTtl(); in ParseFrom()
/openthread-latest/src/core/net/
Dmdns.cpp603 uint32_t Core::RecordInfo::GetTtl(bool aIsLegacyUnicast) const in GetTtl() function in ot::Dns::Multicast::Core::RecordInfo
1398 record.SetTtl(mKeyRecord.GetTtl(isLegacyUnicast)); in AppendKeyRecordTo()
1457 aKey.mTtl = mKeyRecord.GetTtl(); in CopyKeyInfoTo()
1760 aaaaRecord.SetTtl(mAddrRecord.GetTtl(isLegacyUnicast)); in AppendAddressRecordsTo()
1782 if (mAddrRecord.IsPresent() && (mAddrRecord.GetTtl() > 0)) in AppendNsecRecordTo()
1787 if (mKeyRecord.IsPresent() && (mKeyRecord.GetTtl() > 0)) in AppendNsecRecordTo()
1827 aHost.mTtl = mAddrRecord.GetTtl(); in CopyInfoTo()
2157 ttl = mPtrRecord.GetTtl(); in ShouldSuppressKnownAnswer()
2164 ttl = subType->mPtrRecord.GetTtl(); in ShouldSuppressKnownAnswer()
2283 if (mPtrRecord.GetTtl() > 0) in PrepareResponseRecords()
[all …]
Dsrp_advertising_proxy.cpp704 VerifyOrExit(aFirstService.GetTtl() == aSecondService.GetTtl()); in EntriesMatch()
953 hostInfo.mTtl = aHost.GetTtl(); in RegisterHost()
1027 serviceInfo.mTtl = aService.GetTtl(); in RegisterService()
1074 RegisterKey(hostName, /* aServiceType */ nullptr, aHost.mKey, aHost.mKeyAdvId, aHost.GetTtl()); in RegisterKey()
1088 …vice.GetInstanceLabel(), serviceType, aService.mHost->mKey, aService.mKeyAdvId, aService.GetTtl()); in RegisterKey()
Dsrp_server.cpp465 grantedTtl = aTtlConfig.GrantTtl(grantedLease, aHost.GetTtl()); in CommitSrpUpdate()
933 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction()
950 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessHostDescriptionInstruction()
1079 SuccessOrExit(error = aHost.ProcessTtl(ptrRecord.GetTtl())); in ProcessServiceDiscoveryInstructions()
1142 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessServiceDescriptionInstructions()
1157 service->mTtl = srvRecord.GetTtl(); in ProcessServiceDescriptionInstructions()
1166 SuccessOrExit(error = aHost.ProcessTtl(record.GetTtl())); in ProcessServiceDescriptionInstructions()
1204 aRecord.GetTtl() == 0 && aRecord.GetLength() == 0; in IsValidDeleteAllRecord()
1389 ToUlong(aHost.GetTtl())); in InformUpdateHandlerOrCommit()
1767 VerifyOrExit(aHost.GetTtl() > 0); in UpdateAddrResolverCacheTable()
Dsrp_server.hpp274 uint32_t GetTtl(void) const { return mTtl; } in GetTtl() function in ot::Srp::Server::Service
480 uint32_t GetTtl(void) const { return mTtl; } in GetTtl() function in ot::Srp::Server::Host
Dip4_types.hpp421 uint8_t GetTtl(void) const { return mTtl; } in GetTtl() function in ot::Ip4::Header
Ddns_client.cpp217 aTtl = aaaaRecord.GetTtl(); in FindHostAddress()
288 aServiceInfo.mTtl = srvRecord.GetTtl(); in ReadServiceInfo()
364 aServiceInfo.mTxtDataTtl = txtRecord.GetTtl(); in ReadTxtRecord()
437 aTtl = aRecord.GetTtl(); in GetAddress()
Dmdns.hpp879 uint32_t GetTtl(bool aIsLegacyUnicast = false) const;
1528 uint32_t GetTtl(void) const { return mTtl; } in GetTtl() function in ot::Dns::Multicast::Core::CacheRecordInfo
1820 uint32_t GetTtl(void) const { return mRecord.GetTtl(); } in GetTtl() function
Dsrp_client.hpp445 uint32_t GetTtl(void) const { return mTtl; } in GetTtl() function in ot::Srp::Client
Dnat64_translator.cpp244 ip6Header.SetHopLimit(ip4Header.GetTtl()); in TranslateToIp6()
Ddns_types.hpp1337 uint32_t GetTtl(void) const { return BigEndian::HostSwap32(mTtl); } in GetTtl() function in ot::Dns::ResourceRecord
/openthread-latest/src/core/api/
Dsrp_client_api.cpp78 …rpClientGetTtl(otInstance *aInstance) { return AsCoreType(aInstance).Get<Srp::Client>().GetTtl(); } in otSrpClientGetTtl()
Dsrp_server_api.cpp218 …rpServerServiceGetTtl(const otSrpServerService *aService) { return AsCoreType(aService).GetTtl(); } in otSrpServerServiceGetTtl()