2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 13:57:50 +00:00

604 Commits

Author SHA1 Message Date
David Hankins
95f5d38cb3 - Fixed a fenceposting bug when a client had two host records configured,
one using 'uid' and the other using 'hardware ethernet'.  [ISC-Bugs #19895]
2009-07-24 17:21:52 +00:00
David Hankins
583c1c168a - A patch supplied by David Cantrell at RedHat was applied that detects
invalid calling parameters given to the ns_name_ntop() function.
  Specifically, it detects if the caller passed a pointer and size pair
  that causes the pointer to integer-wrap past zero.  [ISC-Bugs #17737]
2009-07-22 21:58:14 +00:00
David Hankins
b8d45c67ea - Secondary servers in a failover pair will now perform ddns removals if
they had performed ddns updates on a lease that is expiring, or was
  released through the primary.  As part of the same fix, stale binding scopes
  will now be removed if a change in identity of a lease's active client is
  detected, rather than simply if a lease is noticed to have expired (which it
  may have expired without a failover server noticing in some situations).
  [ISC-Bugs #19826b]
2009-07-22 17:00:01 +00:00
Paul Selkirk
3e29af1e72 Don't look for IPv6 interfaces on Linux when running in DHCPv4 mode. [RT#18721,19367,19511] 2009-07-16 21:44:55 +00:00
Paul Selkirk
d453265fd2 add a null check to avoid primary crash on contact with secondary [rt19705] 2009-07-16 19:48:45 +00:00
David Hankins
1b12d9993b RELNOTES entry for previous change was erroneously attributed to 4.1.0's
alpha/beta cycle rather than 4.2's track.
2009-07-16 18:08:30 +00:00
David Hankins
86f1d4b723 - Versions 3.0.x syntax with multiple name->code option definitions is now
supported.  Note that, similarly to 3.0.x, for by-code lookups only the
  last option definition is used.  [ISC-Bugs #17613]
2009-07-16 18:02:28 +00:00
David Hankins
a1308b646d - Fixed a bug where relay agent options would never be returned when
processing a DHCPINFORM.  [ISC-Bugs #19303]
2009-07-06 23:33:23 +00:00
David Hankins
33ea4622a8 - Added a configuration function, 'gethostname()', which calls the system
function of the same name and presents the results as a data expression.
  This function can be used to incorporate the system level hostname of
  the system the DHCP software is operating on in responses or queries (such
  as including a failover partner's hostname in a dhcp message or binding
  scope, or having a DHCP client send any system hostname in the host-name or
  FQDN options by default).  [ISC-Bugs #17351]
2009-07-06 23:29:52 +00:00
David Hankins
8a4e543b51 ! A stack overflow vulnerability was fixed in dhclient that could allow
remote attackers to execute arbitrary commands as root on the system,
  or simply terminate the client, by providing an over-long subnet-mask
  option.  [ISC-Bugs #19839]
2009-06-19 23:24:19 +00:00
David Hankins
9e3eb22ab7 - A new failover configuration parameter has been introduced for those
environments where DHCP servers can be reasonably guaranteed to be
  "down" when the failover TCP socket is severed, "auto-partner-down".
  This parameter is not generally safe, and by default is disabled, so
  please carefully review the documentation of this parameter in the
  dhcpd.conf(5) manpage before determining to use it yourself.
  [ISC-Bugs #19600]
2009-06-17 22:08:42 +00:00
David Hankins
792156a904 - A bug was fixed that caused the 'conflict-done' state to fail to be parsed
in failover state records.  [ISC-Bugs #19739]
2009-06-17 21:42:04 +00:00
Paul Selkirk
a41d7a251e pull up rt19436: client -D option 2009-05-27 20:11:38 +00:00
David Hankins
350576c5d4 - Fixed a bug where an OMAPI socket disconnection message would not result
in scheduling a failover reconnection, if the link had not negotiated a
  failover connect yet (e.g.: connection refused, asynch socket connect()
  timeouts).  [ISC-Bugs #19684]
2009-05-20 23:58:53 +00:00
David Hankins
a57df74a1a - Compilation on Solaris with USE_SOCKETS defined in includes/site.h has
been repaired.  Other USE_ overrides should work better. [ISC-Bugs #19434]

- A check for the local flavor of IFNAMSIZ had a broken 'else' condition,
  that probably still resulted in the correct behaviour (but wouldn't use
  a larger defined value provided by the host OS). [ISC-Bugs #19434]
2009-04-30 18:42:52 +00:00
Mark Andrews
62f6843db6 Remove infinite loop in token_print_indent_concat(). 2009-04-30 06:30:27 +00:00
David Hankins
dedde1ba35 - Fixed failover reconnection retry code to continue to retry to reconnect
rather than restarting the listener.  [ISC-Bugs #19618]
2009-04-22 20:27:58 +00:00
Paul Selkirk
8a3c1e33d0 pull up from rt18597 to HEAD 2009-04-21 14:09:57 +00:00
David Hankins
95fd7038a2 - Memory leak in the load_balance_mine() function is fixed. This would
leak ~20-30 octets per DHCPDISCOVER packet while failover was in use
  and in normal state. [ISC-Bugs #19548]

- Various compilation fixes have been included for the memory related
  DEBUG #defines in includes/site.h.  [ISC-Bugs #19548]
2009-04-07 19:55:52 +00:00
David Hankins
a3dcc0b1c5 - The update-conflict-detection feature would leave an FQDN updated without
a DHCID (still currently implemented as a TXT RR).  This would cause later
  expiration or release events to fail to remove the domain name.  The feature
  now also inserts the client's up to date DHCID record, so records may safely
  be removed at expiration or release time.  Thanks to a patch submitted by
  Christof Chen.  [ISC-Bugs #19500]
2009-03-26 17:20:23 +00:00
David Hankins
f9453d21f2 - A bug in DLPI packet transmission (Solaris, HP/UX) that caused the server
to stop receiving packets is fixed.  The same fix also means that the MAC
  address will no longer appear 'bogus' on DLPI-based systems.
  [ISC-Bugs #19186]

- A bug in select handling was discovered where the results of one select()
  call were discarded, causing the server to process the next select() call
  and use more system calls than required.  This has been repaired - the
  sockets will be handled after the first return from select(), resulting in
  fewer system calls.  [ISC-Bugs #19186]
2009-03-24 18:33:52 +00:00
David Hankins
0829d595f8 - If configured, dhclient may now transmit to an anycast MAC address,
rather than using a broadcast address.  Thanks to a patch from David
  Cantrell at Red Hat. [ISC-Bugs #17740]
2009-03-13 21:41:45 +00:00
David Hankins
4b97eaff2f David Cantrell requests to use 'Red Hat' for trademark purposes in
attribution rather than 'RedHat'.
2009-03-10 21:00:50 +00:00
David Hankins
f4534b17fa - Fixed a cosmetic bug where pretty-printing valid domain-search options would
result in an erroneous error log message ('garbage in format string').
  [ISC-Bugs #19327]
2009-03-10 20:54:02 +00:00
David Hankins
8d7dca581a attribution 2009-03-05 22:53:15 +00:00
David Hankins
38c5c861bd Partial source attribution. 2009-02-20 18:24:14 +00:00
David Hankins
d340bc24fc - Failover port configuration can now be left to defaults (port 647) as
described in the -12 revision of the Failover draft (and assigned by
  IANA).  [ISC-Bugs #17738]
2009-02-20 18:20:00 +00:00
David Hankins
819186b746 - Two uninitialized stack structures are now memset to zero. [ISC-Bugs #17737] 2009-02-20 00:09:24 +00:00
David Hankins
efa5e6b99f - DDNS removal routines were updated so that the DHCID is not removed until
the client has been deprived of all A and AAAA records (not only the last
  one of either of those).  This resolves a bug where dual stack clients
  would not be able to regain their names after either expiration event.
  [ISC-Bugs #18716]
2009-02-12 00:15:33 +00:00
Paul Selkirk
70ea9345cd - Fix a build error in dhcrelay, using older versions of gcc with dhcpv6 disabled. [rt19321] 2009-02-11 17:02:21 +00:00
David Hankins
26e59ee99b - Using reserved leases no longer results in 'lease with binding state
free not on its queue' error messages, thanks to a patch from Frode
  Nordahl. [ISC-Bugs #19274]
2009-01-30 22:31:22 +00:00
David Hankins
64e1823d54 - The db-time-format option was documented in manpages. [no ticket] 2009-01-22 21:22:42 +00:00
Shawn Routhier
cd51403ddc Update relnotes for bug 19054 2009-01-22 02:02:11 +00:00
David Hankins
1aa0fe5e3e - A bug was fixed that caused the server not to answer some valid Solicit
and Request packets, if the dynamic range covering any requested addresses
  had been deleted from configuration.  [ISC-Bugs #19134]
2009-01-07 20:12:03 +00:00
Evan Hunt
159c89d7bf Suppress spurious warnings from configure about --datarootdir [rt19097] 2009-01-07 20:05:30 +00:00
David Hankins
adbef11931 Pave the way for 4.2.0 feature listings, s/eight-spaces/tab/g. 2009-01-07 20:03:16 +00:00
David Hankins
47e6eb82cb - The notorious 'option <unknown> ... larger than buffer' log line,
which is seen in some malformed DHCP client packets, was modified.
  It now logs the universe name, and does not log the length values
  (which are bogus corruption read from the packet anyway).  It also
  carries a hopefully more useful explanation. [ISC-Bugs #18241]
2009-01-07 19:54:06 +00:00
Shawn Routhier
59112e84f5 Validate argument to port option - bug 18695 2009-01-06 00:32:19 +00:00
David Hankins
0171be2dee Version to 4.1.0 final. 2008-12-05 20:14:12 +00:00
David Hankins
09511ea30f Version to 4.1.0rc1. 2008-11-19 16:24:07 +00:00
Evan Hunt
ebf076feea A missing "else" in dhcrelay.c could have caused an interface not to
be recognized. [rt18887]
2008-11-12 23:22:14 +00:00
David Hankins
d7ac7a275b s/trasnmit/transmit/ 2008-11-06 21:47:12 +00:00
David Hankins
236d3a996d - A dhclient-script for MacOS X has been included, which enables
'dhclient -6' support. [ISC-Bugs #18204]
2008-11-03 23:32:12 +00:00
David Hankins
c728361c47 version to 4.1.0b1
copyright update
2008-11-03 21:51:44 +00:00
David Hankins
f1672d8907 - The !inet_pton() call in res_mkupdrec was adjusted to '<= 0' as
inet_pton returns either 1, 0, or -1. [ISC-Bugs #18511]
2008-11-03 21:39:31 +00:00
David Hankins
fbcee149f8 - Delayed-ack is now a compile-time option, compiled out by default.
This feature is simply too experimental for right now, and causes
  some problems to some failover installations.  We will revisit this
  in future releases.  [ISC-Bugs #18832]
2008-11-03 18:13:58 +00:00
David Hankins
399d3dbe29 - A bug cleaning up unknown-xxx temporary option definitions was fixed.
[ISC-Bugs #18735]
2008-10-08 16:26:42 +00:00
David Hankins
1387545ff7 - Some failover debugging #defines have been better defined and some
high frequency messages moved to a deeper debugging symbol.

- The CLTT parameter in failover is now only updated by client activity,
  and not by failover binding updates (taking on the peer's CLTT).

- Failover BNDUPD messages are now discarded if they conflict with an
  update that has been trasnmitted, but not acknowledged.

  [ISC-Bugs #17577c]
2008-09-24 16:18:56 +00:00
Francis Dupont
6ff3b26dd5 Commit rt17304 DHCPv6 examples 2008-09-24 08:38:58 +00:00
David Hankins
a4ffedd162 - A cosmetic bug in DHCPDECLINE processing was fixed which caused all
successful DHCPDECLINEs to be logged as "not found" rather than
  "abandoned".  [ISC-Bugs #18605]
2008-09-11 16:11:46 +00:00