2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-26 20:08:15 +00:00

51 Commits

Author SHA1 Message Date
Shawn Routhier
1dceab6c75 [master] Remove unneeded defines for errors
As part of 4.2.0 we renamed a number of errors but continued
to include the old ones in case somebody was building something
using our libraries.  This #ifdefs them and by defaults removes them
from the compile.
2014-09-10 20:26:40 -07:00
Shawn Routhier
e9326fd0f4 [master] Add define to disable gentle shutodwn by default
Add a define to disable the gentle shutdown feature by default.
The feature has some effects (recover-wait in failvoer pairs)
and release in clients that are always desired.  We plan to
revisit this in order to make it easier to use but with the
define it can be enabled if necessary.
2014-07-02 08:49:19 -07:00
Shawn Routhier
9279a3d722 [master] Add #define for length of prefix we send to v6 client script 2014-05-08 10:58:45 -07:00
Shawn Routhier
388cba45bb [master] Remove the pre-errata code for handling no addresses available 2014-04-29 09:59:21 -07:00
Shawn Routhier
ccc2a36775 [master] Add some more options form older RFCS 2014-01-25 18:59:36 -08:00
Shawn Routhier
bc30c84e65 [master] Add defintiions for options 2014-01-15 18:54:35 -08:00
Shawn Routhier
4d079f0ec0 [master] Better support for INFORM requests.
Add support to use the subnet selection option
and the host declaration statements when processing
an inform request
2013-12-13 12:52:17 -08:00
Shawn Routhier
e54ff84f08 -n master Patch for 30461 and update the auto generated files
Update the auto genrated files to add the required bind9
libraries

Fix up dhcpctl/Makefile.am to include the isccfg lib

Patch for 30461 to allow the DHCP server to find
the name server to update via the DNS
Conflicts:
2013-12-10 04:03:12 +00: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
f8380d3ff2 [master]
+- Add support for a simple check that the server id in a request message
+  to a failover peer matches the server id of the server.  This support
+  is enabled by editing the file includes/site.h and uncommenting the
+  definition for SERVER_ID_CHECK.  The option has several restrictions
+  and issues - please read the comment in the site.h file before
+  enabling it.
+  [ISC-Bugs #31463]
2012-11-16 15:02:13 -08:00
Shawn Routhier
d56788df77 [master]
Modify the nak_lease function to make some attempts to find a
server-identifier option to use for the NAK.
2012-11-02 16:37:03 -07:00
Shawn Routhier
d19fa5a1b5 Fix the NA and PD allocation code to handle the case where a client
provides a preference and the server doesn't have any addresses or
prefixes available.  Previoulsy the server ignored the request with
this patch it replies with a NoAddrsAvail or NoPrefixAvai respone.
By default the code performs according to the errata of August 2010
for RFC 3315 section 17.2.2, to enable the previous style see the
seciton on RFC3315_PRE_ERRATA_2010_08 in includes/site.h.  This option
may be removed in the future.
Thanks to Jiri Popelka at Red Hat for the patch.
[ISC-Bugs #22676]
2012-04-10 22:13:46 +00:00
Shawn Routhier
beaed73f00 DNS Update fix. A misconfigured server could crash during DNS update
processing if the configuration included overlapping pools or
multiple fixed-address entries for a single address.  This issue
affected both IPv4 and IPv6. The fix allows a server to detect such
conditions, provides the user with extra information and recommended
steps to fix the problem.  If the user enables the appropriate option
in site.h then server will be terminated
2011-07-08 22:49:11 +00:00
Tomek Mrugalski
d15aa96419 - Strict checks for content of domain-name DHCPv4 option can now be
configured during compilation time. Even though RFC2132 does not allow
  to store more than one domain in domain-name option, such behavior is
  now enabled by default, but this may change some time in the future.
  See ACCEPT_LIST_IN_DOMAIN_NAME define in includes/site.h.
  [ISC-Bugs #24167]
2011-07-01 12:07:09 +00:00
Shawn Routhier
fb30f3fc8b Minor code cleanups - but note port change for #23196
[ISC-Bugs #23470] - Modify when an ignore return macro is defined to
handle unsed error return warnings for more versions of gcc.
[ISC-Bugs #23196] - Modify the reply handling in the server code to
send to a specified port rather than to the source port for the incoming
message.  Sending to the source port was test code that should have
been removed.  The previous functionality may be restored by defining
REPLY_TO_SOURCE_PORT in the includes/site.h file.  We suggest you don't
enable this except for testing purposes.
[ISC-Bugs #22695] - Close a file descriptor in an error path.
[ISC-Bugs #19368] - Tidy up variable types in validate_port.
2011-05-11 00:38:56 +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
590298e746 Add some debugging output for use with the DDNS code. [ISC-Bugs 20916] 2010-05-26 22:25:10 +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
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
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
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
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
David Hankins
98311e4ba9 MASSIVE merge from V3-RELEASE-BRANCH into HEAD. HEAD and V3-RELEASE are
now synced as of tag V3-0-3-BETA-1.
2005-03-17 20:15:29 +00:00
Ted Lemon
9c1a8943d1 Add DEBUG_LEASE_STATE_TRANSITIONS 2001-04-16 22:17:58 +00:00
Ted Lemon
82b2e77075 Enable tracing by default. 2001-02-13 17:48:51 +00:00
Ted Lemon
00a92910a6 Oops, accidentally committed a local hack. 2000-09-28 18:24:17 +00:00
Ted Lemon
eadee39698 Panic commit. 2000-09-27 23:37:44 +00:00
Ted Lemon
cf06713c94 Don't print failover debug messages by default. 2000-09-02 00:12:38 +00:00
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
0a1f401de2 Disable debugging in production code. 2000-07-06 22:45:27 +00:00
Ted Lemon
561f93bac6 Disable failover by default. 2000-07-06 10:08:14 +00:00
Ted Lemon
f0efccee58 Use compact leases by default. 2000-07-06 06:21:08 +00:00
Ted Lemon
64928ad071 Take away some debugging, and always build nsupdate. 2000-06-20 20:05:02 +00:00
Ted Lemon
8c8e27c53e Implement pool request and response so that secondary can operate. 2000-05-04 18:58:16 +00:00
Ted Lemon
9da31b16f7 oops 2000-02-02 08:02:24 +00:00
Ted Lemon
88c32c8c25 Hack private resolver namespace to avoid link clashes. 2000-02-02 08:01:52 +00:00
Ted Lemon
14bb0a3fd9 Don't build failover by default. 2000-01-27 22:26:16 +00:00
Ted Lemon
4bd8800e89 Fix compilation errors introduced in the last set of checkins. 2000-01-26 14:56:18 +00:00
Ted Lemon
5092dd0601 Add malloc debugging defines. 2000-01-25 01:18:47 +00:00
Ted Lemon
59a7ba7cd5 Don't build failover. 1999-11-23 19:05:45 +00:00
Ted Lemon
d9eefc5dec Mass commit for Brian Murrell. 1999-11-20 18:36:32 +00:00
Ted Lemon
03f54ca8d2 Add definitions for failover protocol and debugging. 1999-11-14 00:49:12 +00:00
Ted Lemon
ea72047ec0 Add POINTER_DEBUG define. 1999-10-25 15:48:45 +00:00
Ted Lemon
98200ed9f0 Disable all debugging by default 1999-03-11 01:36:23 +00:00
Ted Lemon
74f45f9642 Sync with 2.0b1pl16. Fix some pool allocation problems. 1999-02-25 23:30:43 +00:00
Ted Lemon
4b447dc7cd Add define to enable compiling failover protocol support. 1999-02-14 19:01:44 +00:00
Ted Lemon
b6cbc3feb8 Add a rule for debuging class matching. 1998-11-11 07:55:36 +00:00
Ted Lemon
dac426fa64 Add some new debugging types 1998-11-05 18:48:24 +00:00
Ted Lemon
57f8192e2a admonish users not to mess with network API 1996-08-29 09:18:44 +00:00
Ted Lemon
43a18457d3 Add LOG_FACILITY cpp macro 1996-08-27 09:54:27 +00:00