Lines Matching refs:lease
111 struct dhcpOfferedAddr *lease = NULL;
112 u_int32_t req_align, lease_time_align = server_config.lease;
124 /* the client is in our lease/offered table */
125 if ((lease = find_lease_by_chaddr(oldpacket->chaddr)) &&
128 !check_ip(lease->yiaddr)) {
130 if (!lease_expired(lease))
131 lease_time_align = lease->expires - time(0);
132 packet.yiaddr = lease->yiaddr;
147 /* and the ip is in the lease range */
156 /* and its not already taken/offered */ /* ADDME: check that its not a static lease */
157 ((!(lease = find_lease_by_yiaddr(req_align)) ||
160 lease_expired(lease)))) {
163 /* otherwise, find a free IP */ /*ADDME: is it a static lease? */
167 /* try for an expired lease */
177 LOG(LOG_WARNING, "lease pool is full -- OFFER abandoned");
184 if (lease_time_align > server_config.lease)
185 lease_time_align = server_config.lease;
188 /* Make sure we aren't just using the lease time from the previous offer */
190 lease_time_align = server_config.lease;
232 u_int32_t lease_time_align = server_config.lease;
241 if (lease_time_align > server_config.lease)
242 lease_time_align = server_config.lease;
244 lease_time_align = server_config.lease;