2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
David Hankins
98311e4ba9 MASSIVE merge from V3-RELEASE-BRANCH into HEAD. HEAD and V3-RELEASE are
now synced as of tag V3-0-3-BETA-1.
2005-03-17 20:15:29 +00:00
Ted Lemon
a609e69bba sync with branch 2001-08-10 10:50:50 +00:00
Ted Lemon
d758ad8cac Merge changes between 3.0rc7 and 3.0rc8pl2. 2001-06-27 00:31:20 +00:00
Ted Lemon
3417f5cf6a Add recover_wait state goo. 2001-04-20 18:07:29 +00:00
Damien Neil
988c1ca71f Added failover ack queueing. Failover update messages are no longer
immediately responded to, but are placed on a queue (attached to
the dhcp_failover_state_t structure).  Updated leases are committed
only when the queue is drained, giving a significant performance
increase.

The toack queue is drained:
  a) when the queue size exceeds half the partner's max-unacked-updates
     setting, or
  b) two seconds after the last update message is received.

Added 'refcnt' and 'next' fields to the failover_message_t structure,
to allow messages to be placed on the toack queue.

On the sending side, leases are no longer committed immediately after
being acked.  Rather, the commit is deferred until no further acks are
pending.  This also gives a major gain in performance.
2001-02-22 00:15:54 +00:00
Ted Lemon
fcbeefb3ba Move state information common to both peers into a common structure. 2000-08-31 04:40:05 +00:00
Ted Lemon
ea2169d422 - Add support for some new states from the 07 draft.
- Add a service state, which is required to handle the 'startup' state
  and makes a lot of other code outside of failover.c a lot cleaner.
2000-08-24 18:34:45 +00:00
Ted Lemon
7ea8b20777 Declare lease states in dhcpd.h. 2000-07-06 10:06:21 +00:00
Ted Lemon
007e3ee4df Rework DHCP lease state handling to be compatible with failover protocol. 2000-06-02 21:27:21 +00:00
Ted Lemon
20916cae75 - Fix all the OMAPI objects in the DHCP server and client that weren't
being correctly reference-counted.
- Make and use object-specific allocators.
- Add reference/dereference support to hash functions and to timeout
  functions.
2000-05-16 23:03:49 +00:00
Ted Lemon
8c8e27c53e Implement pool request and response so that secondary can operate. 2000-05-04 18:58:16 +00:00
Ted Lemon
999d7de695 invalid_state -> unknown_state. Define reject reasons. 2000-05-03 06:09:36 +00:00
Ted Lemon
f3886ff38c Add some missing data structures to the failover_state structure. 2000-05-01 23:40:15 +00:00
Ted Lemon
49733f31d3 Go back to the BSD license. 2000-03-17 04:00:32 +00:00
Ted Lemon
438f5f95e6 Expose failover_state enum. 2000-01-05 18:40:43 +00:00
Ted Lemon
80f2771e09 Add dhcp_failover_state_t and fix some of the other failover structures. 2000-01-05 18:08:23 +00:00
Ted Lemon
c689c0c9f0 Define all the elements in the message structure. Rename some constants. 1999-11-23 22:24:03 +00:00
Ted Lemon
2ac47e02e0 Add FT_TEXT_OR_BYTES. 1999-11-23 19:06:19 +00:00
Ted Lemon
d9eefc5dec Mass commit for Brian Murrell. 1999-11-20 18:36:32 +00:00
Ted Lemon
b3677620b6 Definitions for failover. 1999-11-15 13:52:13 +00:00