2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 21:07:43 +00:00

226 Commits

Author SHA1 Message Date
David Hankins
78c553c4a0 Removing the new I/O changes from HEAD. [ISC-Bugs #16328] 2006-08-09 14:57:48 +00:00
David Hankins
b22de5005c - A new dhcp server option 'adaptive-lease-time-threshold' has been added
which causes the server to substantially reduce lease-times if there are
  few (configured percentage) remaining leases.  Thanks to a patch submitted
  from Christof Chen. [ISC-Bugs #15409]
2006-07-31 23:17:24 +00:00
David Hankins
b543fea9d4 - A new common configuration executable statement, execute(), has been
added.  This permits dhcpd or dhclient to execute a named external
  program with command line arguments specified from other configuration
  language.  Thanks to a patch written by Mattias Ronnblom, gotten to us
  via Robin Breathe. [ISC-Bugs #13728]
2006-07-31 22:19:51 +00:00
Shane Kerr
6d103865fb Merged rt12324, DHCPLEASEQUERY. 2006-07-25 13:26:00 +00:00
David Hankins
dba5803b95 - Support for compressed 'domain name list' style DHCP option contents, and
in particular the domain search option (#119) was added. [ISC-Bugs #15934]
2006-07-22 02:24:16 +00:00
David Hankins
3004bebf47 - A new DDNS related server option, update-conflict-detection, has been
added.  If this option is enabled, dhcpd will perform normal DHCID
  conflict resolution (the default).  If this option is disabled, it will
  instead trust the assigned name implicitly (removing any other bindings
  on that name).  This option has not been made available in dhclient.
  [ISC-Bugs #16165]
2006-07-19 17:14:55 +00:00
David Hankins
2426234f7c - Failover pairs now implement 'MAC Affinity' on leases moving from the
active to free states.  Leases that belonged to the failover secondary
  are moved to BACKUP state rather than FREE upon exiting EXPIRED state.
  If lease rebalancing must move leases, it tries first to move leases
  that belong to the peer in need.
- The server no longer sends POOLREQ messages unless the pool is severely
  misbalanced in the peer's favor (see 'man dhcpd.conf' for more details).
- Pool rebalance events no longer happen upon successfully allocating a
  lease.  Instead, they happen on a schedule.  See 'man dhcpd.conf' for the
  min-balance and max-balance statements for more information.

  [ISC-Bugs #13308]
2006-06-16 19:26:45 +00:00
David Hankins
5e86441636 - A new common (server or client) option, 'db-time-format local;', has
been added which prints the local time in /var/db/dhcpd.leases rather
  than UTC.  Thanks to a patch from Ken Lalonde. [ISC-Bugs #2678]
2006-06-06 16:35:18 +00:00
David Hankins
d19e2cf7de Compiler warnings (a few were bugfixes internal to HEAD development) silenced.
[ISC-Bugs #16133]
2006-06-05 16:42:59 +00:00
David Hankins
f7fdb21693 - Varying option space code and length bit widths (8/16/32) are now
supported.  This is a milestone in acheiving RFC 3925 "VIVSO" and
  DHCPv6 support. [ISC-Bugs #15979]
2006-06-01 20:23:18 +00:00
David Hankins
dcc557db27 - Some time value size fixes in 3.0.4 brought on from FreeBSD /usr/ports were
misapplied to server values rather than client values.  The server no longer
  advertises 8-byte lease-time options when on 64-bit platforms.
  [ISC-Bugs #16036]
2006-05-17 20:15:32 +00:00
David Hankins
febbd40203 - The dhclient 'reject ...;' statement, which rejects leases given by named
server-identifiers, now permits address ranges to be specified in CIDR
  notation. [ISC-Bugs #1435]
2006-05-15 15:07:50 +00:00
David Hankins
3a16098f0b Pulling work between V3-0-4B3 and present v3-release-branch to HEAD. 2006-05-05 20:32:31 +00:00
David Hankins
a55ccdd037 - Support for 'reserved' (psuedo-static) and BOOTP leases via failover
was introduced. [ISC-Bugs #13672]
- The failover implementation was updated to comply with revision 12 of
  the protocol draft. [ISC-Bugs #13672]
2006-04-27 17:26:42 +00:00
David Hankins
25b988c68f - The IO system now tracks all local IP addresses, so that the DHCP
applications (particularly the dhcrelay) can discern between what frames
  were tranmsitted to it, and what frames are being carried through it which
  it should not intercept. [ISC-Bugs #15573]
2006-02-27 23:56:13 +00:00
David Hankins
88cd8aca9e - Merge changes between 3.0.3RC1 and 3.0.4-BETA-3 into HEAD (silence
robie).
2006-02-24 23:16:32 +00:00
David Hankins
06e77c34fb Corrections to changes made on HEAD pursuant to review of changes between
V3.0.3 and HEAD.  [ISC-Bugs #15348]
2005-09-30 17:57:32 +00:00
David Hankins
c75473d800 Merge changes between 3.0.3b1 and 3.0.3rc1 to HEAD. 2005-07-07 16:39:08 +00:00
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
James Brister
f3fe382d68 Fixes for QoS support. 2001-07-10 20:36:06 +00:00
Ted Lemon
d758ad8cac Merge changes between 3.0rc7 and 3.0rc8pl2. 2001-06-27 00:31:20 +00:00
James Brister
899d754f27 OMAPI class and subclass support. 2001-06-22 16:47:20 +00:00
Ted Lemon
31bbee784c Sync with 3.0rc7 2001-05-17 19:04:09 +00:00
Ted Lemon
96c823d5e8 Add line-oriented argument to new_parse(). 2001-05-02 06:48:42 +00:00
Ted Lemon
e540864ef1 Fix prototypes. 2001-04-16 22:15:23 +00:00
Ted Lemon
fd547e9817 Fix up a -DDEBUG compile error. 2001-04-09 00:46:39 +00:00
Ted Lemon
c1f22aef47 - Add S_STOPPED state for downed interfaces.
- Add subclass prototypes.
- Remove duplicate class prototypes.
2001-04-05 22:49:40 +00:00
Ted Lemon
e47988bfd7 fix up dhclient script defaults. 2001-03-22 07:01:11 +00:00
Ted Lemon
b3519f23f1 Support NUL characters in STRING tokens. 2001-03-17 00:47:39 +00:00
Ben Cottrell
3d2aa1bff4 More DLPI patches from Joost. His patch was way garbled, but this is my
best interpretation of it. The only thing confusing me is that I thought
he'd fixed all the byte order dependencies in an elegant way, but I
still see some rather ugly #ifdefs in this code. Oh well. At least it
works on minbar.
2001-03-16 22:12:19 +00:00
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