Searched refs:leaseOption (Results 1 – 2 of 2) sorted by relevance
/openthread-3.6.0/src/core/net/ |
D | srp_client.cpp | 1438 Dns::LeaseOption leaseOption; in AppendUpdateLeaseOptRecord() local 1455 leaseOption.InitAsShortVariant(mLease); in AppendUpdateLeaseOptRecord() 1460 leaseOption.InitAsLongVariant(mLease, mKeyLease); in AppendUpdateLeaseOptRecord() 1463 optionSize = static_cast<uint16_t>(leaseOption.GetSize()); in AppendUpdateLeaseOptRecord() 1468 error = aMessage.AppendBytes(&leaseOption, optionSize); in AppendUpdateLeaseOptRecord() 1770 Dns::LeaseOption leaseOption; in ProcessOptRecord() local 1775 switch (error = leaseOption.ReadFrom(aMessage, aOffset, aOptRecord.GetLength())) in ProcessOptRecord() 1778 mLease = Min(leaseOption.GetLeaseInterval(), kMaxLease); in ProcessOptRecord() 1779 mKeyLease = Min(leaseOption.GetKeyLeaseInterval(), kMaxLease); in ProcessOptRecord()
|
D | srp_server.cpp | 1182 Dns::LeaseOption leaseOption; in ProcessAdditionalSection() local 1198 …SuccessOrExit(error = leaseOption.ReadFrom(aMessage, offset + sizeof(optRecord), optRecord.GetLeng… in ProcessAdditionalSection() 1202 aHost->SetLease(leaseOption.GetLeaseInterval()); in ProcessAdditionalSection() 1203 aHost->SetKeyLease(leaseOption.GetKeyLeaseInterval()); in ProcessAdditionalSection() 1207 aHost->SetUseShortLeaseOption(leaseOption.IsShortVariant()); in ProcessAdditionalSection() 1468 Dns::LeaseOption leaseOption; in SendResponse() local 1490 leaseOption.InitAsShortVariant(aLease); in SendResponse() 1494 leaseOption.InitAsLongVariant(aLease, aKeyLease); in SendResponse() 1497 optionSize = static_cast<uint16_t>(leaseOption.GetSize()); in SendResponse() 1501 SuccessOrExit(error = response->AppendBytes(&leaseOption, optionSize)); in SendResponse()
|