2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

47 Commits

Author SHA1 Message Date
Ted Lemon
4bcdb16d41 Fix a case where leases could wind up with too many references. 2000-12-28 23:34:08 +00:00
Damien Neil
b992d7e23d DDNS implementation rewrite. DDNS should now operate according to
<draft-ietf-dhc-dhcp-dns-12.txt>.

common/options.c, common/tables.c, includes/dhcp.h:
  Split the fqdn.name option into fqdn.hostname and fqdn.domainname.

includes/dhcpd.h, server/Makefile.dist, server/ddns.c, server/dhcp.c,
server/mdb.c, server/stables.c:
  Added a new file (server/ddns.c) containing the DDNS updates code.
  This file exports two functions: ddns_updates() and ddns_removals().
  ddns_updates() is called when a lease is granted, and ddns_removals()
  is called when the lease expires or is released.

server/dhcpd.c:
  Remove the previous DDNS update code, and add default code for the
  ddns-hostname, ddns-domainname, ddns-ttl, and ddns-rev-domainname
  server options.
2000-12-11 18:56:45 +00:00
Ted Lemon
38d717583a Don't blow away bindings and such when releasing or abandoning leases. 2000-12-05 07:32:26 +00:00
Ted Lemon
9e3831637a Pass client state to eval functions. Lots of other stuff. 2000-11-28 23:27:24 +00:00
Ted Lemon
8e775b7b6d Don't enter leases that don't have subnets. 2000-09-29 18:21:33 +00:00
Damien Neil
1b234d446f Finished up function call support. 2000-08-28 19:36:39 +00:00
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
c1af245e17 - Fix a bug where the first host declaration with a hardware address
wasn't being entered into the database.
2000-07-09 07:00:06 +00:00
Ted Lemon
d9961d3a68 Maintain a free list of leases if compact leases are being used. 2000-07-06 22:40:27 +00:00
Ted Lemon
5e3683817d - Fix some bugs in the lease timeout code.
- When transition to FTS_ACTIVE happens, set next state.
- Conditionalize failover-specific code.
2000-07-06 10:27:41 +00:00
Ted Lemon
fd5cbc1eb9 Don't dereference the lease on_expiry pointer if it's been zapped. 2000-07-06 06:26:42 +00:00
Ted Lemon
92f240976e - Dereference leases after hashing them.
- When a new lease has a different billing class, use it.
- Sort leases with the same time last in first, to shorten the
  insertion time for large pools.
2000-07-05 07:38:09 +00:00
Ted Lemon
6bbeb85aa9 Fix a couple of cases where the first host wouldn't be hashed. 2000-06-30 00:40:19 +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
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
f9cda22163 Queue failover update on lease commit. Write all states on startup. 2000-05-03 06:34:13 +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
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
4bd8800e89 Fix compilation errors introduced in the last set of checkins. 2000-01-26 14:56:18 +00:00
Ted Lemon
583cab3c28 Fix binding support. 2000-01-25 01:42:48 +00:00
Ted Lemon
77d58db250 Get rid of ddns_rev_name and ddns_fwd_name. 2000-01-08 01:48:42 +00:00
Ted Lemon
d0607c8e48 Don't check for pool peer if FAILOVER_PROTOCOL isn't defined. 2000-01-05 18:49:47 +00:00
Ted Lemon
ebf0fbac3a Lots of small changes to support failover. New struct hardware support. 2000-01-05 18:22:07 +00:00
Ted Lemon
d9eefc5dec Mass commit for Brian Murrell. 1999-11-20 18:36:32 +00:00
Ted Lemon
df73931267 More fixups for lease expiry code. 1999-11-14 00:32:28 +00:00
Ted Lemon
ccbdce1467 - Delete on_expiry events when lease is released, regardless of whether
there's a release event.
- If the lease being superseded is the next in a pool to expire, clean that
  up before superseding.
- Also, if the next lease to expire in a pool expires at the same time as
  the current lease, make sure that both expire, not just one.
1999-11-12 17:21:28 +00:00
Ted Lemon
3107c7f9bb Zero out on_* statements before superseding lease with copied template. 1999-11-07 20:38:01 +00:00
Ted Lemon
a816cb178e Clean up a loophole in the code that sets up the pool expiry timer. 1999-10-28 15:53:05 +00:00
Ted Lemon
494bf48827 Oops, fix typo. 1999-10-28 13:07:06 +00:00
Ted Lemon
2616896572 Use the right expiry event. Count leases, hosts and groups written and log each. 1999-10-27 23:05:17 +00:00
Ted Lemon
394d5a3dc1 Clean up deleted vs. undeleted leases. 1999-10-25 01:55:40 +00:00
Ted Lemon
e96b71e15c Get rid of dynamic_hosts kludge - do host deletion like group deletion. 1999-10-24 23:27:52 +00:00
Ted Lemon
3815154804 Add new_shared_network_interface function. 1999-10-24 17:19:46 +00:00
Ted Lemon
309267f056 Set the type of each lease as it is allocated. 1999-10-14 18:27:38 +00:00
Ted Lemon
6f2e946022 Fix a core dump involving incorrect use of evaluate_data_expression. 1999-10-13 16:28:00 +00:00
Ted Lemon
4bbb2b493b Implement lease expiry events. 1999-10-08 22:17:41 +00:00
Ted Lemon
b1b7b521fe Get a clean compile with all known gcc warnings. 1999-10-07 06:36:35 +00:00
Ted Lemon
77a5f87162 Fix up char * -> unsigned char * mismatches. 1999-10-07 02:14:10 +00:00
Ted Lemon
41a7cabfb7 Check for non-null group-name-hash before traversing it. 1999-10-05 18:44:27 +00:00
Ted Lemon
41ce579a22 Accept a packet argument in release_lease(). 1999-10-05 02:47:12 +00:00
Ted Lemon
1615a0987c Move handling of on_release hooks and nsupdate to release_lease() 1999-10-05 00:03:24 +00:00
Ted Lemon
2c3c24f40b Get rid of dynamic groups garbage and just dump them out of the hash table. 1999-10-01 03:26:45 +00:00
Ted Lemon
06ae74a60b Integrate memory.c:1.61. 1999-09-28 22:52:50 +00:00
Ted Lemon
1bce8ee027 Server in-memory database functions. 1999-09-28 22:49:31 +00:00