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

138 Commits

Author SHA1 Message Date
Shawn Routhier
c850c0eec5 Restore common/discover.c, common/options.c and server/dhcp.c
as I mistakenly committed them to head instead of the ticket
branch.
2011-07-02 00:05:35 +00:00
Shawn Routhier
640101e3d3 Correct an unsigned math operation when calculating the options
buffer space for bootp and use a better constant - DHCP packet
size instead of DHCP packet size + udp and iP headers.
Check that we have a packet->options structure before using it.
Only process packets that are longer than a bootp fixed packet
including server and file names.  Previously we allowed for
shorter packets but that wasn't working and nobody noticed.
2011-07-01 23:11:53 +00:00
Shawn Routhier
bea1769742 In dhclient check the data for some string options for
reasonableness before passing it along to the script that
interfaces with the OS. [ISC-Bugs #23722]
2011-03-24 21:11:01 +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
Shawn Routhier
a35285748d Clean up some compiler warnings 2010-02-02 00:44:06 +00:00
Shawn Routhier
a47d63362f Update copyright years 2009-11-24 02:06:57 +00:00
David Hankins
5a671e8715 *** empty log message *** 2009-09-11 18:13:12 +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
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
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
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
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
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
Francis Dupont
9d28ba1291 format_min_length() doesn't know IPv6 2007-12-20 15:33:15 +00:00
Francis Dupont
20ae1affb0 almost editorial stuff 2007-11-30 21:51:43 +00:00
David Hankins
bead14ea8b - The server will now include multiple IA_NA's and multiple IAADDRs within
them, if advertised by the client.  It still only seeks to allocate one
  new address. [ISC-Bugs #17254]
2007-11-14 23:44:46 +00:00
David Hankins
290b43b9cb Remove unreviewed sources from HEAD. 2007-11-06 18:31:36 +00:00
David Hankins
e4a6be15e8 Might even work. 2007-10-30 23:08:16 +00:00
Evan Hunt
e2624b82f1 - Reworked cons_options() and store_options() to fix a buffer
overflow that could result in a DoS (CVS 2007-0062).  Also general
  code tidying. [rt17090]
- Also fixed a spurious error message on the client. [rt17250]
2007-10-26 22:46:50 +00:00
Shane Kerr
3ad9d48f8c Bug in decoding certain options fixed.
See RT ticket #17188 for more.
2007-10-04 12:14:42 +00:00
David Hankins
e9c596456f - The subnet-mask option inclusion now conforms with RFC2132 section 3.3;
it will only appear prior to the routers option if it is present on the
  Parameter-Request-List.  The subnet-mask option will also only be
  included by default (if it is not on the PRL) in response to DISCOVER
  or REQUEST messages.
  [ISC-Bugs #17117]
- The FQDN option is only supplied if the client supplied an FQDN option or
  if the FQDN option was explicitly requested on the PRL.
  [ISC-Bugs #17117]
2007-10-01 16:24:44 +00:00
Shane Kerr
c6785bb5e1 Compile fix for Linux 64-bit. 2007-08-23 13:46:23 +00:00
Shane Kerr
06eb8bab55 Fix a number of warnings (and a few real bugs) found by enabling
gcc warnings.

See RT ticket #17013 for more.
2007-08-22 13:41:37 +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
David Hankins
c9feb859e0 - Corrected a flaw that broke encapsulated spaces included due to presence
on the parameter request list. [ISC-Bugs #16625]
2007-05-23 19:25:40 +00:00
David Hankins
fe5b0fdd70 - Replaced ./configure shellscripting with GNU Autoconf. [ISC-Bugs #16405b]
- RELNOTES/README++
- s/wether/whether/ in dhcp-options.5 manpage edits.
2007-05-19 18:47:15 +00:00
David Hankins
3496f11e70 Update comment per rt16841. 2007-05-16 21:29:57 +00:00
David Hankins
a512d11b6d - Corrected some situations where variables might be used without being
initialized. [ISC-Bugs #16865]

- Silenced several other compiler warnings. [ISC-Bugs #16865]

- Include the more standard sys/uio.h rather than rely upon other header
  files to include it (fixes a BSDI compile failure). [ISC-Bugs #16865]
2007-05-11 15:50:18 +00:00
David Hankins
98bd7ca099 DHCPv6 branch merged to HEAD. 2007-05-08 23:05:22 +00:00
David Hankins
06211b4018 - A bug was repaired in subencapsulation support, where spaces separated
by empty spaces would not get included. [ISC-Bugs #16805]
2007-04-12 16:15:31 +00:00
David Hankins
ecde99a330 - A bug was fixed where the nwip virtual option space was referencing
the fqdn option's virtual option space's option cache. [ISC-Bugs #16801]
2007-04-11 02:04:39 +00:00
Shane Kerr
c57db45ce9 Spelling fixes. See RT ticket 16513 for details. 2007-01-29 10:25:55 +00:00
David Hankins
85edef5cfe - A bug was fixed in dhclient rendering the textual output form of the
domain-search option syntax. [ISC-Bugs #16586]
2007-01-11 16:31:51 +00:00
David Hankins
a7ee93fe57 - A segfault bug in recursive encapsulation support has been corrected.
[ISC-Bugs #16480]
2006-11-09 22:08:28 +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
f2c69b72a8 - Silence warnings from robie. [ISC-Bugs #16358] 2006-08-24 14:58:55 +00:00
Shane Kerr
96bbe8c538 Merge of rt16329, adds encapsulation within encapsulation. 2006-08-11 09:15:17 +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
07de837526 Added associated-ip to priority list, for rt16180. 2006-07-25 13:36:58 +00:00
Shane Kerr
6d103865fb Merged rt12324, DHCPLEASEQUERY. 2006-07-25 13:26:00 +00:00
David Hankins
dba5803b95 - Support for compressed 'domain name list' style DHCP option contents, and
in particular the domain search option (#119) was added. [ISC-Bugs #15934]
2006-07-22 02:24:16 +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
ee91252816 - The subnet-mask option is now supplied by default, but at lowest
priority.  This helps a small minority of clients that provide parameter
  request lists, but do not list the subnet-mask option because they were
  designed to interoperate with a server that behaves in this manner.
  [ISC-Bugs #1196]
- The FQDN option is similarly supplied even if it does not appear on the
  parameter request list, but not to the exclusion of options that do
  appear at the parameter request list.  Up until now it had ultimate
  priority over the client's parameter request list.  [ISC-Bugs #1196]
2006-05-30 19:58:14 +00:00
David Hankins
88cd8aca9e - Merge changes between 3.0.3RC1 and 3.0.4-BETA-3 into HEAD (silence
robie).
2006-02-24 23:16:32 +00:00