"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lease.c" between
dnsmasq-2.84.tar.xz and dnsmasq-2.85.tar.xz

About: Dnsmasq is a lightweight caching DNS forwarder and DHCP server.

lease.c  (dnsmasq-2.84.tar.xz):lease.c  (dnsmasq-2.85.tar.xz)
skipping to change at line 380 skipping to change at line 380
for (lease = leases; lease; lease = lease->next) for (lease = leases; lease; lease = lease->next)
if (lease->expires != 0 && if (lease->expires != 0 &&
(next_event == 0 || difftime(next_event, lease->expires) > 0.0)) (next_event == 0 || difftime(next_event, lease->expires) > 0.0))
next_event = lease->expires; next_event = lease->expires;
if (err) if (err)
{ {
if (next_event == 0 || difftime(next_event, LEASE_RETRY + now) > 0.0) if (next_event == 0 || difftime(next_event, LEASE_RETRY + now) > 0.0)
next_event = LEASE_RETRY + now; next_event = LEASE_RETRY + now;
my_syslog(MS_DHCP | LOG_ERR, _("failed to write %s: %s (retry in %us)"), my_syslog(MS_DHCP | LOG_ERR, _("failed to write %s: %s (retry in %u s)"),
daemon->lease_file, strerror(err), daemon->lease_file, strerror(err),
(unsigned int)difftime(next_event, now)); (unsigned int)difftime(next_event, now));
} }
send_alarm(next_event, now); send_alarm(next_event, now);
} }
static int find_interface_v4(struct in_addr local, int if_index, char *label, static int find_interface_v4(struct in_addr local, int if_index, char *label,
struct in_addr netmask, struct in_addr broadcast, vo id *vparam) struct in_addr netmask, struct in_addr broadcast, vo id *vparam)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)