#ifndef lint
static char copyright[] =
-"$Id: confpars.c,v 1.143.2.26 2005/09/22 16:19:58 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
+"$Id: confpars.c,v 1.143.2.27 2005/09/30 18:05:34 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
case TIMESTAMP:
case TSTP:
case TSFP:
+ case ATSFP:
case CLTT:
t = parse_date (cfile);
switch (token) {
#ifndef lint
static char copyright[] =
-"$Id: dhcp.c,v 1.192.2.54 2005/09/30 17:43:49 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
+"$Id: dhcp.c,v 1.192.2.55 2005/09/30 18:05:34 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
/* Copy previous lease failover ack-state. */
lt->tsfp = lease->tsfp;
+ lt->atsfp = lease->atsfp;
/* Update Client Last Transaction Time. */
lt->cltt = cur_time;
#ifndef lint
static char copyright[] =
-"$Id: failover.c,v 1.53.2.41 2005/09/30 17:51:04 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
+"$Id: failover.c,v 1.53.2.42 2005/09/30 18:05:35 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
goto bad;
}
if (msg -> chaddr.count > sizeof lt -> hardware_addr.hbuf) {
- message = "chaddr to long";
+ message = "chaddr too long";
goto bad;
}
lt -> hardware_addr.hlen = msg -> chaddr.count;
#ifndef lint
static char copyright[] =
-"$Id: mdb.c,v 1.67.2.23 2005/09/22 16:19:59 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
+"$Id: mdb.c,v 1.67.2.24 2005/09/30 18:05:35 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
comp->cltt = lease->cltt;
comp->tstp = lease->tstp;
comp->tsfp = lease->tsfp;
- /* If this lease update is transmitted, reduce atsfp to zero. */
- if (propogate)
- comp->atsfp = 0;
- else
- comp->atsfp = lease->atsfp;
+ comp->atsfp = lease->atsfp;
#endif /* FAILOVER_PROTOCOL */
comp->ends = lease->ends;
comp->next_binding_state = lease->next_binding_state;
just_move_it:
+#if defined (FAILOVER_PROTOCOL)
+ /* Atsfp should be cleared upon any state change that implies
+ * propogation wether supersede_lease was given a copy lease
+ * structure or not (often from the pool_timer()).
+ */
+ if (propogate)
+ comp->atsfp = 0;
+#endif /* FAILOVER_PROTOCOL */
+
if (!comp -> pool) {
log_error ("Supersede_lease: lease %s with no pool.",
piaddr (comp -> ip_addr));