2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

1205 Commits

Author SHA1 Message Date
Ted Lemon
e651f9b234 Fix up handling of failover peer disconnects. 2000-06-08 21:29:02 +00:00
Ted Lemon
b73c184acf Don't log 'late' ICMP echo replies for failover leases. 2000-06-08 21:25:47 +00:00
Ted Lemon
9efd3acc65 - Don't force the lease to be default-lease-time seconds long if
the client requested a lease shorter than MCLT of a failover peer.
2000-06-08 21:22:48 +00:00
Ted Lemon
1dd632af0d - Correctly check the result of make_concat (thanks to Scott Reynolds).
This fixes a long-standing 3.0 problem where more than one fixed
  address declaration in a host declaration would not be honored.
2000-06-08 21:20:00 +00:00
Ted Lemon
0baf2c4a68 Allow reject reason and message in BNDACK messages. 2000-06-07 00:32:55 +00:00
Ted Lemon
e9f0d7c31b Don't use dhcp_lease_free unless COMPACT_LEASES is defined. 2000-06-07 00:28:21 +00:00
Ted Lemon
0756bc8ae9 - Get rid of the obnoxious doubly-linked list and seperate timeout queue
and just make six lists with six kinds of leases sorted as timeout queues.
2000-06-07 00:15:53 +00:00
Ted Lemon
6f0b9ed09c - Break ack queue chain when a lease is removed from the ack queue, so that
its successor doesn't wind up back on the update queue when the lease is
  next updated.
- Print the reject reason when a BNDACK includes one, but still remove the
  lease from the update queue.
- Don't use the lease to send the BNDACK, since there may not be one locally.
- Support contact message, and inter-message-arrival timeouts.
2000-06-07 00:05:17 +00:00
Ted Lemon
dbc855c920 Fix a couple of core dumps. Don't DHCPNAK when peer haslease. 2000-06-06 23:59:18 +00:00
Ted Lemon
122528527c Fix printf arg causing code to assume uid is NUL-terminated. 2000-06-06 23:51:16 +00:00
Ted Lemon
81b53730f9 Parse max_response_delay into the right variable. 2000-06-06 23:49:05 +00:00
Ted Lemon
0a1dfb6514 Correctly handle the case where the matching pool is the first one. 2000-06-03 02:36:03 +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
a79ed92bce Fix a reference problem. 2000-05-18 20:21:43 +00:00
Ted Lemon
165bce70b2 Fix up various platform-specific errors. 2000-05-17 16:04:26 +00:00
Ted Lemon
7ebd047de8 Move server-specific stuff away from common code. 2000-05-16 23:11:42 +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
25a69ca115 Miscellaneous bug fixes. 2000-05-03 23:07:54 +00:00
Ted Lemon
3322568782 - Add argument to allocate_lease to notice if the failover peer has
all the leases.
- Improve some error messages.
- Don't respond with leases owned by peer.
2000-05-03 23:03:50 +00:00
Ted Lemon
ac3ecc7f38 Adjust call to allocate_lease(). 2000-05-03 22:57:42 +00:00
Ted Lemon
84fe3bd0c1 Fix an unitialized pointer reference. 2000-05-03 07:01:16 +00:00
Ted Lemon
9f3da356fd More infrastructure, bug fixes: servers are talking. 2000-05-03 06:43:26 +00:00
Ted Lemon
f9cda22163 Queue failover update on lease commit. Write all states on startup. 2000-05-03 06:34:13 +00:00
Ted Lemon
4338d782ce Update copyright message. 2000-05-03 06:32:09 +00:00
Ted Lemon
f39c1b92aa Don't be so eager to respond to DHCPREQUEST messages with failover. 2000-05-03 06:29:15 +00:00
Ted Lemon
26b44cabef Add write_failover_state. 2000-05-03 06:23:05 +00:00
Ted Lemon
a4ba31607a Parse failover state out of lease database. 2000-05-03 06:19:29 +00:00
Ted Lemon
049b235608 Add some server options. 2000-05-02 00:25:10 +00:00
Ted Lemon
85a537351f - Support load balancing.
- Actually start the failover protocol.
- Fixes to get the protocol to the point of a completed handshake.
- Initial failover state machine (needs work yet).
2000-05-02 00:17:30 +00:00
Ted Lemon
ece9e253c5 - Add equivalent config-file options for command-line options.
- Start the failover protocol if enabled.
2000-05-02 00:11:49 +00:00
Ted Lemon
150cedd0a1 Add support for the load balancing portion of the failover protocol. 2000-05-02 00:00:08 +00:00
Ted Lemon
e96232350d Fix failover state parsing. 2000-05-01 23:57:51 +00:00
Ted Lemon
dd48f2820a Keep dns update records around if deletes fail. 2000-04-14 16:28:07 +00:00
Ted Lemon
c66a31b260 Log an error and quit if we can't append to the DHCP lease database. 2000-04-13 21:41:34 +00:00
Ted Lemon
1a634d5638 Define temporary subnet selection option code for testing. 2000-04-08 01:15:50 +00:00
Ted Lemon
026975bbab Add support for AUTH_KEY. 2000-04-06 22:20:55 +00:00
Ted Lemon
f69d859939 Disallow some special printable characters in db_printable. 2000-04-04 06:28:52 +00:00
Ted Lemon
68f5590808 Make universe_hash using new_hash. 2000-03-18 03:34:11 +00:00
Ted Lemon
7d9784f6fc Patch in TSIG, just to see how to get it to work. 2000-03-18 02:15:52 +00:00
Ted Lemon
49733f31d3 Go back to the BSD license. 2000-03-17 04:00:32 +00:00
Ted Lemon
164f9c7e2f Fix corner case where REBIND would be ignored rather than NAKed. 2000-03-07 02:50:45 +00:00
Ted Lemon
cb9cf4bd2b Update calls to new_hash. 2000-03-06 23:36:09 +00:00
Ted Lemon
716f3d0c84 - Fix up calls to new_hash.
- Fix usage of hardware address in host lookup routine.
2000-03-06 23:35:16 +00:00
Ted Lemon
4d0aaa1776 - Don't call option_allocate without zeroing pointer.
- Fix two chaddr uses that hadn't been made current.
2000-03-06 23:33:52 +00:00
Ted Lemon
20b312c47d Update call to new_hash. 2000-03-06 23:28:27 +00:00
Ted Lemon
f824c26ece Get rid of dns_startup, use lease time instead of constant ttl. 2000-02-15 19:43:38 +00:00
Ted Lemon
144cdb49b2 Don't parse default nsupdate stuff if NSUPDATE isn't defined. 2000-02-08 04:49:06 +00:00
Ted Lemon
c99a6692f2 Define scratch option cache pointer before use. 2000-02-07 18:58:03 +00:00
Ted Lemon
0c8afe11d0 Add extra arg to ack_lease. 2000-02-07 05:15:44 +00:00