Home | History | Annotate | Download | only in src

Lines Matching full:lease

297 /* pack up lease data into a buffer */    
298 void queue_script(int action, struct dhcp_lease *lease, char *hostname, time_t now)
309 if (lease->vendorclass)
310 vclass_len = lease->vendorclass_len;
311 if (lease->userclass)
312 uclass_len = lease->userclass_len;
313 if (lease->supplied_hostname)
314 shost_len = lease->supplied_hostname_len;
315 if (lease->clid)
316 clid_len = lease->clid_len;
339 buf->hwaddr_len = lease->hwaddr_len;
340 buf->hwaddr_type = lease->hwaddr_type;
346 buf->addr = lease->addr;
347 buf->giaddr = lease->giaddr;
348 memcpy(buf->hwaddr, lease->hwaddr, lease->hwaddr_len);
351 if (lease->last_interface != 0)
354 ifr.ifr_ifindex = lease->last_interface;
359 if (lease->last_interface != 0)
360 if_indextoname(lease->last_interface, buf->interface);
364 buf->length = lease->length;
366 buf->expires = lease->expires;
368 buf->remaining_time = (unsigned int)difftime(lease->expires, now);
373 memcpy(p, lease->clid, clid_len);
378 memcpy(p, lease->vendorclass, vclass_len);
383 memcpy(p, lease->userclass, uclass_len);
388 memcpy(p, lease->supplied_hostname, shost_len);