]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add a send statement that behaves the same as the supersede statement.
authorTed Lemon <source@isc.org>
Tue, 16 Jan 2001 23:00:49 +0000 (23:00 +0000)
committerTed Lemon <source@isc.org>
Tue, 16 Jan 2001 23:00:49 +0000 (23:00 +0000)
common/execute.c
common/options.c

index 1a136e0e4e6385d939533421a4f1e0c63bd7a315..e7b8ca7c75ba80c2979a2de3693f82eab81fe6d9 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: execute.c,v 1.43 2001/01/03 23:15:33 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: execute.c,v 1.44 2001/01/16 22:56:56 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -224,8 +224,11 @@ int execute_statements (result, packet, lease, client_state,
                        return 1;
 
                      case supersede_option_statement:
+                     case send_option_statement:
 #if defined (DEBUG_EXPRESSIONS)
-                       log_debug ("exec: supersede option %s.%s",
+                       log_debug ("exec: %s option %s.%s",
+                             (r -> op == supersede_option_statement
+                              ? "supersede" : "send"),
                              r -> data.option -> option -> universe -> name,
                              r -> data.option -> option -> name);
                        goto option_statement;
@@ -627,6 +630,7 @@ int executable_statement_dereference (ptr, file, line)
                break;
 
              case supersede_option_statement:
+             case send_option_statement:
              case default_option_statement:
              case append_option_statement:
              case prepend_option_statement:
@@ -780,6 +784,7 @@ void write_statements (file, statements, indent)
                        break;
 
                      case supersede_option_statement:
+                     case send_option_statement:
                        s = "supersede";
                        goto option_statement;
 
index ab2bda2e92c8ddef6ef21d03696af491a76c3515..4a3738e3d2960a7ada3167983519e24ba2a9e921 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: options.c,v 1.78 2001/01/11 23:13:50 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: options.c,v 1.79 2001/01/16 23:00:49 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #define DHCP_OPTION_DATA
@@ -1195,6 +1195,7 @@ void set_option (universe, options, option, op)
                break;
 
              case supersede_option_statement:
+             case send_option_statement:
                /* Install the option, replacing any existing version. */
                save_option (universe, options, option);
                break;