Home
last modified time | relevance | path

Searched refs:mKeyLease (Results 1 – 10 of 10) sorted by relevance

/openthread-latest/src/core/net/
Dsrp_client.cpp116 mKeyLease = Min(mKeyLease, kMaxLease); in Init()
364 , mKeyLease(0) in Client()
1227 mKeyLease = mShouldRemoveKeyLease ? 0 : mDefaultKeyLease; in AppendServiceInstructions()
1232 mKeyLease = kUnspecifiedInterval; in AppendServiceInstructions()
1256 OT_ASSERT((mKeyLease == kUnspecifiedInterval) || (mKeyLease == keyLease)); in AppendServiceInstructions()
1257 mKeyLease = keyLease; in AppendServiceInstructions()
1314 mKeyLease = DetermineLeaseInterval(mKeyLease, mDefaultKeyLease); in AppendServiceInstructions()
1321 mLease = Min(mLease, mKeyLease); in AppendServiceInstructions()
1347 VerifyOrExit((mKeyLease == kUnspecifiedInterval) || (mKeyLease == keyLease)); in CanAppendService()
1349 mKeyLease = keyLease; in CanAppendService()
[all …]
Dsrp_server.hpp330 uint32_t GetKeyLease(void) const { return mKeyLease; } in GetKeyLease()
409 uint32_t mKeyLease; // In seconds member in ot::Srp::Server::Service
494 uint32_t GetKeyLease(void) const { return mKeyLease; } in GetKeyLease()
557 void SetKeyLease(uint32_t aKeyLease) { mKeyLease = aKeyLease; } in SetKeyLease()
578 uint32_t mKeyLease; // The KEY-LEASE time in seconds. member in ot::Srp::Server::Host
Dsrp_advertising_proxy.cpp262 if (aHost.mKeyLease == 0) in AdvertiseRemovalOf()
273 if (aHost.mKeyLease == 0) in AdvertiseRemovalOf()
294 if (aHost.mKeyLease == 0) in AdvertiseRemovalOf()
305 if (aHost.mKeyLease == 0) in AdvertiseRemovalOf()
355 if (aService.mKeyLease == 0) in AdvertiseRemovalOf()
476 bool shouldUnregisterKeys = (aHost.mKeyLease == 0); in Advertise()
820 if (aHost.mKeyLease == 0) in CompareAndUpdateHost()
Dsrp_server.cpp315 aHost->mKeyLease = 0; in RemoveHost()
490 service.mKeyLease = grantedKeyLease; in CommitSrpUpdate()
1242 service.mKeyLease = leaseOption.GetKeyLeaseInterval(); in ProcessAdditionalSection()
1371 service->mKeyLease = existingService.mKeyLease; in HandleUpdate()
1805 mKeyLease = 0; in Init()
1873 … Server::Service::GetKeyExpireTime(void) const { return mUpdateTime + Time::SecToMsec(mKeyLease); } in GetKeyExpireTime()
1881 aLeaseInfo.mKeyLease = Time::SecToMsec(GetKeyLease()); in GetLeaseInfo()
1996 , mKeyLease(0) in Host()
2046 …lli Server::Host::GetKeyExpireTime(void) const { return mUpdateTime + Time::SecToMsec(mKeyLease); } in GetKeyExpireTime()
2054 aLeaseInfo.mKeyLease = Time::SecToMsec(GetKeyLease()); in GetLeaseInfo()
[all …]
Dsrp_client.hpp273 uint32_t GetKeyLease(void) const { return mKeyLease; } in GetKeyLease()
1092 uint32_t mKeyLease; member in ot::Srp::Client
/openthread-latest/include/openthread/
Dsrp_client.h114 …uint32_t mKeyLease; ///< Desired key lease interval in sec - zero to use de… member
Dsrp_server.h120 uint32_t mKeyLease; ///< The key lease time of a host/service in milliseconds. member
/openthread-latest/tests/unit/
Dtest_srp_server.cpp939 VerifyOrQuit(sUpdateHostLeaseInfo.mKeyLease == 15u * 3600 * 1000); in TestUpdateLeaseShortVariant()
973 service1.mKeyLease = 110u * 3600; in TestUpdateLeaseShortVariant()
995 VerifyOrQuit(sUpdateHostLeaseInfo.mKeyLease == 100u * 3600 * 1000); in TestUpdateLeaseShortVariant()
/openthread-latest/src/cli/
Dcli_srp_server.cpp474 OutputLine(kIndentSize, "key-lease: %lu", ToUlong(leaseInfo.mKeyLease / 1000)); in Process()
Dcli_srp_client.cpp764 SuccessOrExit(error = aArgs[8].ParseAsUint32(entry->mService.mKeyLease)); in ProcessServiceAdd()