Lines Matching refs:lease
10 /* Find the oldest expired lease, NULL if there are no expired leases */
29 * If chaddr == NULL, this is a conflict lease.
44 /* Add a lease into the table, clearing out any old ones.
45 * If chaddr == NULL, this is a conflict lease.
89 /* True if a lease has expired */
90 int FAST_FUNC is_expired_lease(struct dyn_lease *lease)
92 return (lease->expires < (leasetime_t) time(NULL));
95 /* Find the first lease that matches MAC, NULL if no match */
107 /* Find the first lease that matches IP, NULL is no match */
119 /* Check if the IP is taken; if it is, add it to the lease table */
167 struct dyn_lease *lease;
179 /* is this a static lease addr? */
183 lease = find_lease_by_nip(nip);
184 if (!lease) {
189 if (!oldest_lease || lease->expires < oldest_lease->expires)
190 oldest_lease = lease;