Home
last modified time | relevance | path

Searched refs:Lease (Results 1 – 8 of 8) sorted by relevance

/device/generic/goldfish/dhcp/server/
Dlease.h34 struct Lease { struct
35 Lease(unsigned int interfaceIndex, const uint8_t* macAddress) { in Lease() function
50 template<> struct hash<Lease> { argument
51 size_t operator()(const Lease& lease) const {
64 inline bool operator==(const Lease& left, const Lease& right) {
Ddhcpserver.h71 std::unordered_map<Lease, in_addr_t> mLeases;
Ddhcpserver.cpp351 Lease key(interfaceIndex, macAddress); in getOfferAddress()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Io.c290 DhcpSb->Lease = Para->Lease; in DhcpComputeLease()
294 if (DhcpSb->Lease == 0) { in DhcpComputeLease()
295 DhcpSb->Lease = DHCP_DEFAULT_LEASE; in DhcpComputeLease()
298 if ((DhcpSb->T2 == 0) || (DhcpSb->T2 >= Para->Lease)) { in DhcpComputeLease()
299 DhcpSb->T2 = Para->Lease - (Para->Lease >> 3); in DhcpComputeLease()
303 DhcpSb->T1 = DhcpSb->Lease >> 1; in DhcpComputeLease()
468 DhcpSb->Lease = 0; in DhcpCleanLease()
1578 } else if (DhcpSb->LeaseLife < DhcpSb->Lease) { in DhcpOnTimerTick()
1609 if (DhcpSb->LeaseLife == DhcpSb->Lease) { in DhcpOnTimerTick()
DDhcp4Option.h82 UINT32 Lease; // DHCP4_TAG_LEASE member
DDhcp4Impl.h106 UINT32 Lease; member
DDhcp4Option.c263 Para->Lease = NetGetUint32 (Data); in DhcpGetParameter()
DDhcp4Impl.c401 Dhcp4ModeData->LeaseTime = Para->Lease; in EfiDhcp4GetModeData()