Home
last modified time | relevance | path

Searched refs:leaseOption (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/src/core/net/
Dsrp_server.cpp1211 Dns::LeaseOption leaseOption; in ProcessAdditionalSection() local
1227 …SuccessOrExit(error = leaseOption.ReadFrom(aMessage, offset + sizeof(optRecord), optRecord.GetLeng… in ProcessAdditionalSection()
1231 aHost->SetLease(leaseOption.GetLeaseInterval()); in ProcessAdditionalSection()
1232 aHost->SetKeyLease(leaseOption.GetKeyLeaseInterval()); in ProcessAdditionalSection()
1241 service.mLease = service.mIsDeleted ? 0 : leaseOption.GetLeaseInterval(); in ProcessAdditionalSection()
1242 service.mKeyLease = leaseOption.GetKeyLeaseInterval(); in ProcessAdditionalSection()
1247 aHost->SetUseShortLeaseOption(leaseOption.IsShortVariant()); in ProcessAdditionalSection()
1507 Dns::LeaseOption leaseOption; in SendResponse() local
1529 leaseOption.InitAsShortVariant(aLease); in SendResponse()
1533 leaseOption.InitAsLongVariant(aLease, aKeyLease); in SendResponse()
[all …]
Dsrp_client.cpp1641 Dns::LeaseOption leaseOption; in AppendUpdateLeaseOptRecord() local
1658 leaseOption.InitAsShortVariant(mLease); in AppendUpdateLeaseOptRecord()
1663 leaseOption.InitAsLongVariant(mLease, mKeyLease); in AppendUpdateLeaseOptRecord()
1666 optionSize = static_cast<uint16_t>(leaseOption.GetSize()); in AppendUpdateLeaseOptRecord()
1671 error = aInfo.mMessage->AppendBytes(&leaseOption, optionSize); in AppendUpdateLeaseOptRecord()
1988 Dns::LeaseOption leaseOption; in ProcessOptRecord() local
1993 switch (error = leaseOption.ReadFrom(aMessage, aOffset, aOptRecord.GetLength())) in ProcessOptRecord()
1996 mLease = Min(leaseOption.GetLeaseInterval(), kMaxLease); in ProcessOptRecord()
1997 mKeyLease = Min(leaseOption.GetKeyLeaseInterval(), kMaxLease); in ProcessOptRecord()