Searched refs:leaseOption (Results 1 – 2 of 2) sorted by relevance
1211 Dns::LeaseOption leaseOption; in ProcessAdditionalSection() local1227 …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() local1529 leaseOption.InitAsShortVariant(aLease); in SendResponse()1533 leaseOption.InitAsLongVariant(aLease, aKeyLease); in SendResponse()[all …]
1641 Dns::LeaseOption leaseOption; in AppendUpdateLeaseOptRecord() local1658 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() local1993 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()