2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 05:17:57 +00:00

1205 Commits

Author SHA1 Message Date
David Hankins
27837f95b6 - Some uninitialized values were repaired in dhcpleasequery.c that
caused the server to abort. [ISC-Bugs #16783]
2007-04-02 23:00:05 +00:00
David Hankins
02428754a3 - In the case where an "L2" DHCP Relay Agent (one that does not set giaddr)
was directly attached to the same broadcast domain as the DHCP server,
  the RFC3046 relay agent information option was not being returned to the
  relay in the server's replies.  This was fixed; the dhcp server no longer
  requires the giaddr to reply with relay agent information.  Note that
  this also improves compatibility with L2 devices that "intercept" DHCP
  packets and expect relay agent information even in unicast (renewal)
  replies. [ISC-Bugs #16762]
2007-03-27 03:48:06 +00:00
David Hankins
75ab3070cc - A reference leak on binding scopes set by ddns updates was repaired.
[ISC-Bugs #16769]
2007-03-27 02:47:27 +00:00
Shane Kerr
c57db45ce9 Spelling fixes. See RT ticket 16513 for details. 2007-01-29 10:25:55 +00:00
David Hankins
bd2bc2faee - A bug was fixed where attempting to permit leasequeries results in a
fatal internal error, "Unable to find server option 49". [ISC-Bugs #16566]
2007-01-05 23:19:22 +00:00
David Hankins
6708d944e1 - Some default hash table sizes were tweaked, some upwards, some downwards.
3.1.0a1's tables resulted in a reduction in default server memory use.
  The new selected values provide more of a zero sum (increasing the size
  of tables likely to be populated, decreasing the size of tables unlikely).

- Lease structures appear in three spearate hashes: by IP address, by UID,
  and by hardware address.  One type of table was used for all three, and
  improvements to IP address hashing were applied to all three (so UID and
  hardware addresses were treated like 4-byte integers).  There are now two
  types of tables, and the uid/hw hashes use functions more appropriate
  to their needs.

- The max-lease-misbalance percentage no longer causes scheduled rebalance
  runs to be skipped: it still governs the schedule, but every scheduled
  run will attempt balance.

[ISC-Bugs #16396]
2006-10-27 22:54:13 +00:00
David Hankins
66c8f7347a - An option definition referencing leak was fixed, which resulted in early
termination of dhclient upon the renewal event. [ISC-Bugs #16423]
2006-10-17 20:45:59 +00:00
David Hankins
4c7ffd58fc Silencing compiler warnings in ths run of development. [ISC-Bugs #16425] 2006-10-09 17:47:43 +00:00
David Hankins
616d67cb0a - The servers now try harder to transmit pending binding updates when
entering normal state. [ISC-Bugs #16412]

- UPDREQ/UPDREQALL handling was optimized - it no longer dequeues and
  requeues all pending updates.  This should reduce the number of spurious
  'xid mismatch' log mesasges. [ISC-Bugs #16412]
2006-09-27 18:27:27 +00:00
David Hankins
99aa7f3805 Documentation change for new pool balance behaviour as will appear in 3.1.0. 2006-08-28 21:44:42 +00:00
David Hankins
808d45fd9d Head bugfix, dueling BNDUPD/ACKs [ISC-Bugs #16346b] 2006-08-28 21:35:03 +00:00
David Hankins
d084a789f5 - Don't forget to set ATSFP on receiving a BNDACK - bug introduced in 3.1.0
work.  [ISC-Bugs #16359]
2006-08-24 14:55:51 +00:00
David Hankins
87a08cccd5 - DHCPINFORM handling for clients that properly set ciaddr and come to the
server via a relay agent has been repaired. [ISC-Bugs #16355]
2006-08-22 17:13:25 +00:00
David Hankins
0f0397ac6b Pulling down update from v3_1. 2006-08-17 21:50:56 +00:00
David Hankins
78c553c4a0 Removing the new I/O changes from HEAD. [ISC-Bugs #16328] 2006-08-09 14:57:48 +00:00
David Hankins
51c4d3f56f Manpage formatting errors corrected. 2006-08-08 19:45:11 +00:00
David Hankins
5786874726 Several minor bugs never seen in any public release corrected.
[ISC-Bugs #16316]
2006-08-02 22:36:00 +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
Shane Kerr
6d103865fb Merged rt12324, DHCPLEASEQUERY. 2006-07-25 13:26:00 +00:00
Shane Kerr
8f4c32a101 Hankins' fix to HEAD build breakage. 2006-07-20 16:27:45 +00:00
David Hankins
2178df03e7 - Host declaration hardware addresses and client identifiers may only be
configured once.  dhcpd will now fail to load config files that specify
  multiple identifiers (previous versions would silently over-ride the
  value with the later configured value). [ISC-Bugs #15533]
2006-07-20 16:04:03 +00:00
David Hankins
a396d25fba - 'ignore client-updates;' now has behaviour that is different from
'deny client-updates;'.  The client's request is not truly ignored,
  rather it is encouraged.  Should this value be configured, the server
  updates DNS as though client-updates were set to 'deny'.  That is, it
  enters into DNS whatever it is configured to do already, provided it is
  configured to.  Then it sends a response to the client that lets the
  client believe it is performing client updates (which it will), probably
  for a different name.  In essence, this lets the client do as it will,
  ignoring this aspect of their request. [ISC-Bugs #16185]
2006-07-19 20:13:57 +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
e77c575fc4 - Attempting to write a new lease file to replace a corrupt (due to
encountering non-retryable errors during writing) lease file should
  no longer result in an infinite recursion. [ISC-Bugs #16265]
2006-07-19 16:44:47 +00:00
David Hankins
8757898765 - Abandoned or dissociated (err condition) leases now remove any related
dynamic dns bindings.  Thanks to a patch from Patrick Schoo.
  [ISC-Bugs #15836]
2006-07-18 18:15:53 +00:00
David Hankins
33e1cb2ba5 - A few lines of code that were failover-specific were moved within
#if defined() clauses so that compilation without failover could be
  made possible. [ISC-Bugs #15987]
2006-07-17 15:21:45 +00:00
David Hankins
334bf4910f - The DHCP Relay Agent Information Option / Link Selection Sub-Option
is now supported.  (See RFC3527 for details). [ISC-Bugs #16251]
2006-07-17 15:16:43 +00:00
David Hankins
71b0f2cef7 Clarifications per dhcp-users activity: -d implies -f. 2006-07-13 17:28:40 +00:00
David Hankins
e48891e8db Updated dhcpd.conf.5 manpage in regard to ddns-domainname option, pursuant
to discussion on dhcp-users.
2006-07-09 15:01:19 +00:00
Shane Kerr
909c5c0c25 Minor macro fix, see ticket rt16177. 2006-06-19 20:42:11 +00:00
Shane Kerr
c36d062ea3 Minor fix, see rt16176. 2006-06-19 20:39:28 +00:00
David Hankins
2b9ce770a3 MAC address affinity and reserved leases were subtly incompatible.
[ISC-Bugs #16172]
2006-06-19 15:15:16 +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
1b2ab55fdd - A bug where leases not in ACTIVE state would get billed to billed classes
(classes with lease limitations) was fixed.  Non-active leases OFFERed
  to clients are no longer billed (but billing is checked before offering).
  [ISC-Bugs #16168]
2006-06-15 17:52:06 +00:00
David Hankins
1db5e2c079 Less silly configuration syntax for infinite lease-time marking reservations.
Documentation++. [ISC-Bugs #16166]
2006-06-15 17:49:49 +00:00
David Hankins
b500bd4c23 - Some patches to improve DHCP Server startup speed from Andrew Matheson
have been incorporated. [ISC-Bugs #3154]
2006-06-09 15:51:02 +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
41c3f761a3 - rt15979 integration error repairs [ISC-Bugs #16132] 2006-06-02 17:11:49 +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
2d767ea0a4 There are 6 lease pools now, not 5. [ISC-Bugs #16051] 2006-05-30 19:46:37 +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
d31555c9e9 Correcting an uninitialized use warning on HEAD [ISC-Bugs #16025]. 2006-05-11 16:35:56 +00:00
Shane Kerr
509df655d1 Merging in final change from rt15937, getting rid of space
before () in function calls.
2006-05-11 14:48:59 +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
0b17f049ed - The Load Balance Algorithm was misimplemented. The current implementation
matches RFC 3074. [ISC-Bugs #15980]
2006-05-04 21:14:21 +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
Shane Kerr
185d16f9f9 Changes as documented in ticket #15937 (stdio file descriptor fixes). 2006-03-27 09:45:47 +00:00
David Hankins
ba65ea235f Silence sign change warnings. [ISC-Bugs #15884] 2006-03-02 19:02:56 +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
00663f8159 Pass the non-const version of the pointer to memcpy - silence warnings. 2006-02-27 23:43:30 +00:00