Add --dhcp-ttl option.

This commit is contained in:
Simon Kelley
2016-02-24 21:24:45 +00:00
parent df3d54f776
commit 832e47beab
4 changed files with 17 additions and 5 deletions

View File

@@ -1170,7 +1170,7 @@ static unsigned long crec_ttl(struct crec *crecp, time_t now)
before the lease expires. */
if (crecp->flags & F_DHCP)
return daemon->local_ttl;
return daemon->use_dhcp_ttl ? daemon->dhcp_ttl : daemon->local_ttl;
/* Immortal entries other than DHCP are local, and hold TTL in TTD field. */
if (crecp->flags & F_IMMORTAL)