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

151 Commits

Author SHA1 Message Date
Thomas Markwalder
36e2c22493 [master] Corrects high impact issues reported by Coverity.
Merges in rt36712
2014-08-25 13:22:29 -04:00
Shawn Routhier
38c4774a43 [master] Several small patches
Tidy up several small tickets
Correct parsing of DUID from config file, previously the LL type
was put in the wrong place in the DUID string.
[ISC-Bugs #20962]
Add code to parse "do-forward-updates" as well as "do-forward-update"
[ISC-Bugs #31328]
Remove log_priority as it isn't currently used.
[ISC-Bugs #33397]
Increase the size of the buffer used for reading interface information.
[ISC-Bugs #34858]
2014-04-25 10:50:24 -07:00
Shawn Routhier
edad9be5cd [master] Remove vix.com and nominum.com
Remove old information from copyrights and
    man pages.
2014-01-26 10:52:15 -08:00
Shawn Routhier
619304cd87 [master] Support using v6 relay options in server decicions. 2013-11-25 21:00:41 -08:00
Shawn Routhier
d7d9c0c7c3 -n [master]
Add code to support the standards version of DDNS
2013-10-14 15:53:24 -07:00
Shawn Routhier
01fa619fab -n [master]
26510
 Add support for classes in the IPv6 code
2013-08-27 14:20:09 -07:00
Shawn Routhier
360cc6d993 [master]
Squashed commit of the following:
    [rt33351]
    Check for overly long whitespace in files we are parsing and
    print a message and exit if we find it.  We could try and continue
    but given that the file is likely corrupt that doesn't seem useful.
    commit e5cde5645b6cdeee04761fa3671d9e9f3b5abdd4
    commit 25c632ab85e996f89a8e0337a3c5caef6ff4392a
2013-06-04 10:44:13 -07:00
Mark Andrews
dc9d7b08aa - Silence benign static analysis warnings.
[ISC-Bugs #33428]
2013-05-15 10:49:54 +10:00
Shawn Routhier
b047bd385b Add support for Infiniband over sockets to the server and
relay code.  We've tested this on Solaris and hope to expand
support for Infiniband in the future.  This patch also corrects
some issues we found in the socket code.  [ISC-Bugs #24245]
2012-02-16 21:05:28 +00:00
Shawn Routhier
d424157d63 Add support for passing DDNS information to a DNS server over
an IPv6 address.  [ISC-Bugs #22647]
2011-09-21 20:36:55 +00:00
Tomek Mrugalski
a34feb7d81 - Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros
[ISC-Bugs #13151]
2011-05-11 14:01:25 +00:00
Tomek Mrugalski
023fbaa03e - Parameters configured to evaluate from user defined function calls can
now be correctly written to dhcpd.leases
- If a 'next-server' parameter is configured in a dynamic host record via
  OMAPI as a domain name, the syntax written to disk is now correctly parsed
  upon restart.  [ISC-Bugs #22266]
2011-04-21 17:53:48 +00:00
Tomek Mrugalski
5d082abd92 Several time related improvements:
- set initial delay to 0 to speed up client start
- added 'initial-delay' parameter to possibly revert to old behavior
- better handling of very short (1 or 2s) leases
- client lease records are recorded at most once every 15 seconds
- ICMP ping-check is now timed more precisely
- Servers that don't offer lease-time are now black-listed
[ISC-Bugs #19660]
2011-04-21 13:24:24 +00:00
Shawn Routhier
23d39ae2d8 Don't pass the ISC_R_INPROGRESS status to the omapi signal handlers.
Passing it through to the handlers caused the omshell program to fail
to connect to the server.  [ISC-Bugs #21839]

Fix the paranthesis in the code to process configuration statements
beginning with "auth".  The previous arrangement caused
"auto-partner-down" to be processed incorrectly.  [ISC-Bugs #21854]
2010-12-14 21:59:44 +00:00
Mark Andrews
5484ac9e3a cast (char) to (unsigned char) to silence (char) array index warnings. 2010-09-17 01:52:34 +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
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
a47d63362f Update copyright years 2009-11-24 02:06: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
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
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
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
Evan Hunt
c40e954c55 Check whether files are zero length before parsing them [rt17757] 2008-03-07 20:12:44 +00:00
Francis Dupont
80c9fdb0e7 Add IA_TA and IA_PD support in server 2008-02-20 12:45:53 +00:00
Evan Hunt
dccb6edf66 Updated copyright strings for 4.1.0a1 release 2008-01-24 02:43:06 +00:00
Evan Hunt
4cafb81543 Added explicit parser support for zero-length DHCP options, such as
rapid-commit, via format code 'Z' [rt17355]
2008-01-23 19:19:22 +00:00
David Hankins
7dc9b5fb30 - MINUS tokens should be parseable again. [ISC-Bugs #17289] 2008-01-21 19:13:45 +00:00
David Hankins
219a65eb6e - Fixed a compilation problems on platforms that define a value for FDDI,
which conflicts with a dhcp configuration syntax token by the same name.
  [ISC-Bugs #16898]
2008-01-16 22:57:01 +00:00
Francis Dupont
1d9774ab57 Cleanup IA_NA dependencies 2008-01-02 23:47:22 +00:00
Francis Dupont
3453299d9d trivial fix in not (yet) used code 2007-12-15 10:59:37 +00:00
David Hankins
b1d3778ce8 - Relative time may now be used as a qualifier for 'allow' and 'deny' access
control lists.  These directives may be used to assist in re-addressing
  address pools without having to constantly reconfigure the server.  Please
  see 'man dhcpd.conf' for more information on allow/deny 'after time' syntax.
  Thanks to a patch from Christof Chen.  [ISC-Bugs #17110]
2007-10-31 19:13:33 +00:00
Shane Kerr
b645f9d559 Compile fix (unused variable).
See RT ticket #17116.
2007-08-29 21:58:32 +00:00
David Hankins
e9263b5c00 HEAD build failure reparation. [ISC-Bugs #17115] 2007-08-29 18:09:35 +00:00
Shane Kerr
d19e816ece Fix ugly output on config errors.
See RT ticket #17011 for more.
2007-08-29 15:56:56 +00:00
David Hankins
0c20eab3c8 - 'request' and 'also request' syntaxes have been added to accomodate
the DHCPv6 client configuration.  'send dhcp6.oro' is no longer
  necessary.  [ISC-Bugs #17023]
2007-08-23 16:06:09 +00:00
Shane Kerr
28868515f6 Code cleanup to remove warnings from "gcc -Wall".
See RT ticket #16988 for more.
2007-07-13 06:43:43 +00:00
Shane Kerr
71765b5809 Minor bug in octal parsing fixed.
See RT ticket #16514 for more.
2007-07-03 09:51:58 +00:00
Shane Kerr
bda3316935 Handle IPv6 parsing better. Adds generic whitespace handling to
parser.
See RT ticket #16862 for more.
2007-06-20 10:38:55 +00:00
David Hankins
8da06bb1f5 - Compilation on HP/UX has been repaired. The changes should generally
apply to any architecture that supplies SIOCGLIFCONF but does not
  use 'struct lifconf' structures to pass values. [ISC-Bugs #16928]
2007-06-08 14:58:20 +00:00
Evan Hunt
804401cc8e Merge in changes that were needed in 3.1.0 to silence NetBSD compiler
warnings. [rt16907]
2007-05-29 18:11:56 +00:00
Shane Kerr
66eaae186e Handle hostnames that start with numbers.
This involved needing to look at more than one token at a time, so
this patch moves from read() to mmap() of files, as a way to gracefully
rewind.

See RT ticket #16516 for (a lot) more.
2007-05-23 15:29:49 +00:00
David Hankins
706792c9d3 Copyright++ 2007-05-19 19:16:28 +00:00
David Hankins
98bd7ca099 DHCPv6 branch merged to HEAD. 2007-05-08 23:05:22 +00:00
Shane Kerr
4cba29f04f Pulling in rt16318, a set of fixes for 3.1 from Hankins. 2006-08-04 10:59:33 +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
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