]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- The log message emitted when the 'leased-address' value was not available
authorDavid Hankins <dhankins@isc.org>
Mon, 17 Jul 2006 15:33:34 +0000 (15:33 +0000)
committerDavid Hankins <dhankins@isc.org>
Mon, 17 Jul 2006 15:33:34 +0000 (15:33 +0000)
  in dhcpd.conf "executable statements" has been updated to be more helpful.
  Manpage information for this value has also been updated. [ISC-Bugs #16136]

RELNOTES
common/dhcp-eval.5
common/tree.c

index 409e03d13fc4576c885999db3c6af29371aec581..c681b592fef8d4e80ab1be52e077875142fd4622 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -161,6 +161,10 @@ and for prodding me into improving it.
   #if defined() clauses so that compilation without failover could be
   made possible.
 
+- The log message emitted when the 'leased-address' value was not available
+  in dhcpd.conf "executable statements" has been updated to be more helpful.
+  Manpage information for this value has also been updated.
+
                        Changes since 3.0.4rc1
 
 - The dhcp-options.5 manpage was updated to correct indentation errors
index f7c0fde5d1300a6197804955c2868778b186a418..b65714be5793ccce983165ab6828f4f19f4871c1 100644 (file)
@@ -1,4 +1,4 @@
-.\"    $Id: dhcp-eval.5,v 1.21 2006/05/11 16:31:29 dhankins Exp $
+.\"    $Id: dhcp-eval.5,v 1.22 2006/07/17 15:33:34 dhankins Exp $
 .\"
 .\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
 .\" Copyright (c) 1996-2003 by Internet Software Consortium
@@ -301,7 +301,12 @@ four bytes.
 .RS 0.25i
 In any context where the client whose request is being processed has
 been assigned an IP address, this data expression returns that IP
-address.
+address.  In any context where the client whose request is being
+processed has not been assigned an ip address, if this data expression
+is found in executable statements executed on that client's behalf,
+a log message indicating "there is no lease associated with this client"
+is syslogged to the debug level (this is considered dhcpd.conf debugging
+information).
 .RE
 .PP
 .B binary-to-ascii (\fInumeric-expr1\fB, \fInumeric-expr2\fB,
index bfabf3e132ebdf3e2fd20125242ddf89717517c2..140d0d535a4e3301328550cadc66dcb88b2620e9 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: tree.c,v 1.106 2006/06/01 20:23:17 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: tree.c,v 1.107 2006/07/17 15:33:34 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1950,7 +1950,9 @@ int evaluate_data_expression (result, packet, lease, client_state,
 
              case expr_leased_address:
                if (!lease) {
-                       log_error ("data: leased_address: not available");
+                       log_debug("data: \"leased-address\" configuration "
+                                 "directive: there is no lease associated "
+                                 "with this client.");
                        return 0;
                }
                result -> len = lease -> ip_addr.len;