2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

1342 Commits

Author SHA1 Message Date
Shawn Routhier
1e05d095c2 Don't include lease time information in the response to a DHCPINFORM
request.  We do this by removing any time information from the option
cache before building the reponse packet.  Bug ticket 21092.
2010-04-20 23:20:20 +00:00
David Hankins
1b658b9b70 automake regeneration 2010-03-24 23:35:11 +00:00
David Hankins
33692791d7 - "The LDAP Patch" that has been circulating for some time, written by
Brian Masney and S.Kalyanasundraram and maintained for application to
  the DHCP-4 sources by David Cantrell has been included.  Please be
  advised that these sources were contributed, and do not yet meet the
  high standards we place on production sources we include by default.
  As a result, the LDAP features are only included by using a compile-time
  option which defaults off, and if you enable it you do so under your
  own recognizance.  We will be improving this software over time.
  [ISC-Bugs #17741]
2010-03-24 21:49:03 +00:00
Shawn Routhier
7aa153b882 Primarly fix the trace code. This was broken during the modfictions of the
DDNS code to use the bind libraries.  This patch fixes that breakage and
includes support for the new DDNS code.  This patch also deletes some dead
code and neatens up some log messages.
2010-02-11 23:55:36 +00:00
David Hankins
fdfebedf3e - An optimization described in the failover protocol draft is now included,
which permits a DHCP server operating in communications-interrupted state
  to 'rewind' a lease to the state most recently transmitted to its peer,
  greatly increasing a server's endurance in communications-interrupted.
  This is supported using a new 'rewind state' record on the dhcpd.leases
  entry for each lease.  [ISC-Bugs #19601]
2010-02-03 23:25:25 +00:00
Shawn Routhier
a35285748d Clean up some compiler warnings 2010-02-02 00:44:06 +00:00
David Hankins
bdd8e74780 - Helpfully (hopefully) edit documentation in dhcp-options to reinforce that
the ia* options are not for direct configuration, and are only documented
  for completeness...
2010-01-21 22:17:17 +00:00
Shawn Routhier
a47d63362f Update copyright years 2009-11-24 02:06:57 +00:00
Mark Andrews
07e4072773 remove extranous semi colon 2009-11-23 20:44:32 +00:00
Shawn Routhier
3ac2a573a5 Cleanup for ddns changes ticket rt20527 2009-10-29 00:46:48 +00:00
Shawn Routhier
3da01c08ba automake regeneration 2009-10-28 04:15:26 +00:00
Shawn Routhier
98bf16077d Support for asynchronous ddns per ticket 19216 - convert to using isclib and
dnslib.
2009-10-28 04:12:30 +00:00
David Hankins
5a671e8715 *** empty log message *** 2009-09-11 18:13:12 +00:00
Shawn Routhier
875e99dc30 Fix the check in the signal handler code to check if there is an inner
signal handler before calling it.  Previously we check if there was a
get_value function.
2009-09-09 19:05:17 +00:00
Shawn Routhier
2c85ac9b24 Switch isc urls from http to https and correct sw to services or software
for new web site as appropirate.
2009-07-23 18:52:21 +00:00
Paul Selkirk
32fd12cc74 update copyright 2009-07-16 22:01:26 +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
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
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
8ef5db715e Search for '-' in 'client-hostname' at correct index. [ISC-Bugs #19840] 2009-06-20 15:45:50 +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
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
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
78f16d27d4 automake regeneration 2009-03-25 18:28:16 +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
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
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
Shawn Routhier
ae56655628 Update for 19054 - modifications to keep GCC 4.3 happy 2009-01-22 00:43:58 +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
Jeremy Reed
1731766d82 Minor grammar fix.
Reported in bugs ticket #18084.
2008-11-21 13:59:56 +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
ecddae64a2 - The v6 BSD socket method was updated to use a single UDP BSD socket
no matter how many interfaces are involved, differentiating the
  interfaces the packets were received on by the interface index supplied
  by the OS.
- The relay agent no longer listens to the All DHCP Servers Multicast
  address.
- A bug was fixed in data_string_sprintfa() where va_start was only called
  once for two invocations of vsprintf() variants.
  [ISC-Bugs #17610b]
2008-08-29 17:48:57 +00:00
David Hankins
0524508a91 Backing out [ISC-Bugs #17610] 2008-08-08 22:37:46 +00:00
David Hankins
08c4e7ce2b - The BSD socket code will now permit multiple DHCPv6 server instances to
operate on different interfaces. [ISC-Bugs #17610]
2008-08-08 20:26:57 +00:00
Evan Hunt
535485df4e The server wasn't always sending the FQDN option when it should. [rt18237] 2008-07-19 03:57:23 +00:00
Evan Hunt
20210a7bfc Clients that sent a parameter request list containing the routers option
before the subnet mask option were receiving only the latter. [rt18133]
2008-07-19 01:11:40 +00:00
Evan Hunt
7de20a9518 - Merge dhcrelay6 into dhcrelay
- Prep for 4.1.0a2 release
2008-06-13 00:55:53 +00:00
Francis Dupont
8009776487 fix format code 'Z' 2008-06-12 13:27:55 +00:00
David Hankins
237bfdc924 regen 2008-06-11 23:13:30 +00:00
David Hankins
4619c0a2fb - A memory leak when using omapi has been fixed. [ISC-Bugs #17560] 2008-03-18 18:28:14 +00:00
Francis Dupont
507fe25f11 fix 'o' 2008-03-17 16:08:54 +00:00
Evan Hunt
c40e954c55 Check whether files are zero length before parsing them [rt17757] 2008-03-07 20:12:44 +00:00
David Hankins
8269561daa - A bug was fixed where the length of a hostname was miscalculated, so that
hosts were given odd-looking domain names ("foo.bar.ba.example.com").
  [ISC-Bugs #17732]
2008-03-06 21:33:22 +00:00
Francis Dupont
27905a7d5e fix sunos compile 2008-02-29 23:57:56 +00:00
David Hankins
66cebfcb89 - ./configure was extended to cover many optional build features, such
as failover, server tracing, debugging, and the execute() command.
  [ISC-Bugs #17678]
2008-02-28 21:21:56 +00:00