2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-25 11:27:31 +00:00

345 Commits

Author SHA1 Message Date
Ted Lemon
d73c240408 Add quotify prototypes. 2001-03-15 23:17:48 +00:00
Ted Lemon
af5ad6dff0 Declare dhcp_failover_toack_queue_timeout (). 2001-02-22 06:41:51 +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
f3aad41060 Add trace-related prototypes and compress lease structure. 2001-02-12 20:44:25 +00:00
Ted Lemon
625f7cee54 New protos; change type of agent option on lease. 2001-01-25 08:25:12 +00:00
Ted Lemon
a861af5af8 Fix find_cached_zone declaration. 2001-01-17 08:25:10 +00:00
Ted Lemon
cc4473a0aa Add new config parameters, adjust and add prototypes. 2001-01-16 23:24:02 +00:00
Ted Lemon
afc0ca251f Add defines for update parameters. 2001-01-11 23:14:37 +00:00
Ted Lemon
2f7ca09230 Publicize some function declarations. 2001-01-11 02:15:31 +00:00
Ted Lemon
26cb4b2d7c Add define for client-updates configuration variable. 2001-01-08 08:22:35 +00:00
Ted Lemon
de427245f2 - Globalize resolver state.
- Add an unset function for unsetting variables.
2001-01-03 23:50:13 +00:00
Ted Lemon
dbcc689ea5 Add externs for enumerations and ddns styles. 2000-12-29 06:47:06 +00:00
Ted Lemon
8bed305da3 Prototype interface_setup (). 2000-12-28 23:21:35 +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
159bcce309 Fix prototypes 2000-11-28 23:30:06 +00:00
Ted Lemon
6f56b7e293 Fix up and add prototypes. 2000-11-24 04:13:12 +00:00
Ted Lemon
bca944231b Disable unicast broadcast hack, but leave a place for it to be configured. 2000-10-13 18:58:12 +00:00
Ted Lemon
b2398d9738 Update zone caching prototypes 2000-10-12 09:00:33 +00:00
Ted Lemon
432604c33a Add vendor_space_name to client_config. Lots of prototypes. 2000-10-10 22:56:25 +00:00
Ted Lemon
af380050fc Add some prototypes. 2000-09-01 23:08:07 +00:00
Ted Lemon
8d3aec71d3 Add more prototypes 2000-08-31 04:38:36 +00:00
Damien Neil
1b234d446f Finished up function call support. 2000-08-28 19:36:39 +00:00
Ted Lemon
c489f07560 Add declarations for all kinds of cool new failover functions. 2000-08-24 18:31:36 +00:00
Damien Neil
49146f3c15 Added authentication support. The tsig_key structure has been renamed
to auth_key and moved into libomapi.  libomapi now depends on libres,
which contains the data signing routines.
2000-08-03 21:00:41 +00:00
Damien Neil
c62871ba64 Moved hash.c from libdhcp to libomapi, in anticipation of moving the
tsig_key structure into libomapi.  (tsig_keys are stored in a hashtable,
and libomapi should not depend on libdhcp.)
2000-08-01 22:55:07 +00:00
Damien Neil
c8d531a6f9 Moved convert.c from libdhcp to libomapi. (libomapi should not depend
on libdhcp.)
2000-08-01 22:34:36 +00:00
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
32a4756333 Initialize the environment rather than using temporary client scripts. 2000-07-20 00:53:24 +00:00
Ted Lemon
932d739c4d Update prototypes. 2000-07-06 22:44:57 +00:00
Ted Lemon
7ea8b20777 Declare lease states in dhcpd.h. 2000-07-06 10:06:21 +00:00
Ted Lemon
875d2b66d8 Update prototypes 2000-07-05 09:15:08 +00:00
Ted Lemon
626ca6a2c1 Add an omapi port config parameter to client config structure. 2000-06-24 06:23:57 +00:00
Ted Lemon
57c8fdd799 Fix up the declaration for the failover_link allocator. 2000-06-20 20:03:42 +00:00
Ted Lemon
2aac431201 - Make ON_ACK_QUEUE and ON_UPDATE_QUEUE persistent (fixes a problem with
queuing updates during communications_interrupted).
2000-06-12 20:12:13 +00:00
Ted Lemon
72896e9f57 Make dhcp_failover_make_option prototype consistent with declaration. 2000-06-10 17:55:11 +00:00
Ted Lemon
d0411fbd4d Add hash_foreach, et al. 2000-06-06 23:46:37 +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
165bce70b2 Fix up various platform-specific errors. 2000-05-17 16:04:26 +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
76d5bd36c8 Fix some weird errors in failover external declarations. 2000-05-09 03:11:11 +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
f9d43a9a2d Add flags to indicate the failover queue a least is on. 2000-05-03 22:56:56 +00:00
Ted Lemon
a7982987d7 Add some new prototypes. 2000-05-03 06:05:44 +00:00
Ted Lemon
aa8579c0f5 Add some server options. Prototype new failover functions. 2000-05-01 23:39:22 +00:00
Ted Lemon
29a026dbfa Correct prototype for find_cached_zone. 2000-04-20 00:57:15 +00:00
Ted Lemon
a59ea078bf Move tsig_key declaration above client_lease declaration. 2000-04-06 22:08:27 +00:00
Ted Lemon
eb1aa66842 Fix typo. 2000-04-06 19:12:17 +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