2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

604 Commits

Author SHA1 Message Date
David Hankins
8d50c7219b - ./configure on longer searches for -lcrypto to explicitly link against.
This fixes a bug where 'dhclient' would have shared library dependencies
  on '/usr/lib'.  [ISC-Bugs #21967]
2010-11-03 23:22:02 +00:00
Shawn Routhier
f33dc72271 Add cert and cve numbers and acknowledgement 2010-11-02 18:43:34 +00:00
Shawn Routhier
4dc5a6b1fa Handle a relay forward message with an unspecified address in the
link address field.  Previously such a message would cause the
server to crash.  [ISC-Bugs #21992]
2010-10-22 19:50:24 +00:00
Shawn Routhier
ad59838e33 Update the code to parse dhcpv6 lease files to accept a semi-colon at
the end of the max-life and preferred-life clauses.  In order to be
backwards compatible with older lease files not finding a semi-colon
is also accepted.  [ISC-Bugs #22303].
2010-10-13 22:28:18 +00:00
Shawn Routhier
4e0997c6c2 Minor changes for scripts, configure.ac and Makefiles
[ISC-Bugs #19147] Use domain-search instead of domain-name in manual and
                  example conf file.  Thanks to a patch from David Cantrell
                  at Red Hat.
[ISC-Bugs #19761] Restore address when doing a rebind in DHCPv6
[ISC-Bugs #19945] Properly close the quote on some arguments.
[ISC-Bugs #20952] Add 64 bit types to configure.ac
[ISC-Bugs #21308] Add "PATH=" to CLIENT_PATH envrionment variable
2010-09-14 22:20:20 +00:00
Shawn Routhier
6aaaf6a460 Fixes to lease input and output.
[ISC-Bugs #20418] - Some systems don't support the "%s" argument to
strftime, paste together the same string using mktime instead.
[ISC-Bugs #19596] - When parsing iaid values accept printable
characters.
[ISC-Bugs #21585] - Always print time values in omshell as hex
instead of ascii if the values happen to be printable characters.
2010-09-13 22:06:37 +00:00
Shawn Routhier
83d409ae59 Parse date strings more properly - the code now handles semi-colons in
date strings correctly.  Thanks to a patch from Jiri Popelka at Red Hat.
[ISC-Bugs #21501, #20598]
2010-09-13 19:23:28 +00:00
David Hankins
8bd445a1c1 - Two identical log messages for commit_leases() have been disambiguated.
[ISC-Bugs #18915]
2010-09-10 22:04:19 +00:00
Shawn Routhier
197c917e34 - Add an elapsed time option to the release message and refactor the
code to move most of the common code to a single routine.
  [ISC-Bugs #21171].
2010-09-10 20:21:03 +00:00
Shawn Routhier
57fbc77221 Another batch of fixes
Correct error handling in DLPI [ISC-Bugs #20378]
 Remove __sun__ and __hpux__ typedefs in osdep.h as they are now being
 checked in configure.  [ISC-Bugs #20443]
 Modify how the cmsg header is allocated the v6 send and received routines
 to compile on more compilers.  [ISC-Bugs #20524]
 When parsing a domain name free the memory for the name after we are
 done with it.  [ISC-Bugs #20824]
2010-09-09 22:18:02 +00:00
Shawn Routhier
66be0ad13f Minor code fixes
[ISC-Bugs #19566] When trying to find the zone for a name for ddns allow
 the name to be at the apex of the zone.
 [ISC-Bugs #19617] Restrict length of interface name read from command line
 in dhcpd - based on a patch from David Cantrell at Red Hat.
 [ISC-Bugs #20039] Correct some error messages in dhcpd.c
 [ISC-Bugs #20070] Better range check on values when creating a DHCID.
 [ISC-Bugs #20198] Avoid writing past the end of the field when adding
 overly long file or server names to a packet and add a log message
 if the configuration supplied overly long names for these fields.
 [ISC-Bugs #21497] Add a little more randomness to rng seed in client
2010-09-08 22:13:05 +00:00
David Hankins
ea75d5443c - Fixed a bug that leaks host record references onto lease structures,
causing the server to apply configuration intended for one host to any
  other innocent clients that come along later.  [ISC-Bugs #22018]
2010-09-07 23:55:24 +00:00
Shawn Routhier
4a5098e93f Add code to clear the pointer to an object in an OMAPI handle when the
object is freed due to a dereference.  [ISC-Bugs #21306]
2010-09-07 22:59:23 +00:00
David Hankins
f07d0fb5bc - The .TH tag for the dhcp-options manpage was typo repaired
thanks to a report from jidanni and the Debian package maintenance
  team.  [ISC-Bugs #21676] {Debian Bug#563613}
2010-07-20 21:09:14 +00:00
Shawn Routhier
d6645f56ff Put the options in the dhclient and dhcpd man pages into the standard form.
[ISC-Bugs #20264] and parts of [ISC-Bugs #17744] for dhclient.8 changes
2010-07-14 20:01:14 +00:00
David Hankins
524705e54a - 'get-host-names true;' now also works even if 'use-host-decl-names true;'
was also configured.  The nature of this repair also fixes another
  error; the host-name supplied by a client is no longer overridden by a
  reverse lookup of the lease address.  Thanks to a patch from Wilco Baan
  Hofman supplied to us by the Debian package maintenance team.
  [ISC-Bugs #21691] {Debian Bug#509445}
2010-07-13 18:43:41 +00:00
Shawn Routhier
5a38e43f6f Documentation cleanup covering multiple tickets
[ISC-Bugs #20265] [ISC-Bugs #20259] minor cleanup
  [ISC-Bugs #20263] add text describing some default values
  [ISC-Bugs #20193] single quotes at the start of a line indicate a control
  line to nroff, escape them if we actually want a quote.
  [ISC-Bugs #18916] sync the pointer to web pages amongst the different docs
2010-07-02 23:09:15 +00:00
Shawn Routhier
63ff896aa5 Add cert and cve number to note for 21253 2010-06-18 19:18:52 +00:00
Shawn Routhier
badc999d0e Add declaration for variable in debug code in alloc.c. [ISC-Bugs #21472] 2010-06-11 22:13:44 +00:00
David Hankins
a5c7bf7779 adding changes notes to reflect bugs fixed by updating libisc/libdns. 2010-06-02 17:08:17 +00:00
Shawn Routhier
2b58b8650e Modify determination of ttl to use for DDNS update [ISC-Bugs #21126] 2010-05-27 17:19:26 +00:00
Shawn Routhier
600ee61905 Fix the trace code to handle timing events better. [ISC-Bugs 20969] 2010-05-27 00:30:11 +00:00
Shawn Routhier
590298e746 Add some debugging output for use with the DDNS code. [ISC-Bugs 20916] 2010-05-26 22:25:10 +00:00
David Hankins
0d8c3d6eed - A bug was fixed that could cause the DHCPv6 server to advertise/assign a
previously allocated (active) lease to a client that has changed subnets,
  despite being on different shared networks.  Dynamic prefixes specifically
  allocated in shared networks also now are not offered if the client has
  moved.  [ISC-Bugs #21152]
2010-05-25 17:40:28 +00:00
Shawn Routhier
d122accf9a Patch for 21093 - handle v4 or v6 only a little better. If we can't contstruct
the context log it and leave, if we can but then try and do a DDNS transaction
using the protocol we don't have log it and continue.
2010-05-25 00:22:29 +00:00
David Hankins
8a513c436b - A memory leak in ddns processing was closed. [ISC-Bugs #21377] 2010-05-24 23:47:42 +00:00
Shawn Routhier
1943bbf803 Allow zero-length client ids when hashing. Ticket 21253 2010-05-14 23:46:59 +00:00
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
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
f4bc8261ca Modify the routine that constructs DNS names to convert relative names to
absolute names (add trailing dot) to keep the dns library happy.  Ticket 21054
2010-03-17 17:07:43 +00:00
Shawn Routhier
0585235c45 Update the fsync batching patch to work with the isc libraries - 21044 2010-03-12 01:36:57 +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
3da71461ce Update relnotes for the compiler warning changes 2010-02-02 00:48:48 +00:00
David Hankins
3c941d426d - Cleaned up an unused hardware address variable in nak_lease().
[ISC-Bugs #15382]
2010-02-01 22:03:15 +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
David Hankins
928618dd72 - When using 'ignore client-updates;', the FQDN returned to the client
is no longer truncated to one octet.  [ISC-Bugs #20743]
2009-12-17 20:04:35 +00:00
Shawn Routhier
95bba8b61c ticket 20687
Update README and RELNOTES for 4.2
Include building the bind libraries as part of the make system instead
of as a separate step by the customer.
2009-12-02 20:43:52 +00:00
Shawn Routhier
c3af785cd7 Note for gcc 2.95.4 compiler cleanup. 2009-11-24 02:23:15 +00:00
Shawn Routhier
fe4b839a22 Update to bind 9.7.0b3, remove work around for fdwatchpoke bug 2009-11-20 00:10:14 +00:00
David Hankins
c900c5b249 - The 'hardware [ethernet|etc] ...;' parameter in host records has been
extended to attempt to match DHCPv6 clients by the last octets of a
  DUID-LL or DUID-LLT provided by the client.  [ISC-Bugs #19599]
2009-11-19 23:57:41 +00:00
Shawn Routhier
8fa0112dd1 Ticket 20540 - clean ups for DHCP-DDNS work, add an change dropped in the
merge, arrange to handle callbacks from the socket code after we've deleted
the socket and deal with the quantum issue in the tasks.  This last will
be removed shortly as a better fix is now available.
2009-11-19 23:49:57 +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
571c38b093 Fix two typos in relnotes. 2009-10-16 22:54:22 +00:00
Shawn Routhier
0493fdca5e Fix handling of changing a connectiong from connecting to connected, avoiding
releasing the memory for the omapi io object.
2009-10-15 18:39:49 +00:00
David Hankins
cd3f0b9bd5 - ./configure now checks to ensure the intX_t and u_intX_t types are defined,
correcting a compilation failure when using Sun's compiler. [ISC-Bugs #20370]
2009-10-06 23:06:00 +00:00
David Hankins
e4e3a2ab42 update RELNOTES for CVE-2009-1892 2009-10-05 19:05:22 +00:00
David Hankins
2267da8477 - Both host and subnet6 configuration groups are now included whether a
fixed-address6 (DHCPv6) is in use or not.  Host scoped configuration takes
  precedence.  This fixes two bugs, one where host scoped configuration
  would not be included from a non-fixed-address6 host record, and the equal
  and opposite bug where subnet6 scoped configuration would not be used when
  over-riding vlaues were not present in a matching fixed-address6 host
  configuration.  [ISC-Bugs #20069]
2009-09-30 20:59:59 +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