Diff for /embedaddon/dhcp/server/dhcpleasequery.c between versions 1.1 and 1.1.1.1

version 1.1, 2012/02/21 22:30:18 version 1.1.1.1, 2012/10/09 09:06:55
Line 1 Line 1
 /*  /*
    * Copyright (C) 2012 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 2006-2007 by Internet Systems Consortium, Inc. ("ISC")   * Copyright (C) 2006-2007 by Internet Systems Consortium, Inc. ("ISC")
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 454  dhcpleasequery(struct packet *packet, int ms_nulltp) { Line 455  dhcpleasequery(struct packet *packet, int ms_nulltp) {
                         (lease_duration / 8);                          (lease_duration / 8);
   
                 if (time_renewal > cur_time) {                  if (time_renewal > cur_time) {
                        if (time_renewal < cur_time)                        time_renewal = htonl(time_renewal - cur_time);
                                time_renewal = 0; 
                        else 
                                time_renewal = htonl(time_renewal - cur_time); 
   
                         if (!add_option(options,                           if (!add_option(options, 
                                         DHO_DHCP_RENEWAL_TIME,                                          DHO_DHCP_RENEWAL_TIME,
Line 487  dhcpleasequery(struct packet *packet, int ms_nulltp) { Line 485  dhcpleasequery(struct packet *packet, int ms_nulltp) {
                 }                  }
   
                 if (lease->ends > cur_time) {                  if (lease->ends > cur_time) {
                         if (time_expiry < cur_time) {  
                                 log_error("Impossible condition at %s:%d.",  
                                           MDL);  
   
                                 option_state_dereference(&options, MDL);  
                                 lease_dereference(&lease, MDL);  
                                 return;  
                         }  
                         time_expiry = htonl(lease->ends - cur_time);                          time_expiry = htonl(lease->ends - cur_time);
   
                         if (!add_option(options,                           if (!add_option(options, 
                                         DHO_DHCP_LEASE_TIME,                                          DHO_DHCP_LEASE_TIME,
                                         &time_expiry,                                           &time_expiry, 

Removed from v.1.1  
changed lines
  Added in v.1.1.1.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>