]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise
authorTed Lemon <source@isc.org>
Mon, 25 Oct 1999 01:52:52 +0000 (01:52 +0000)
committerTed Lemon <source@isc.org>
Mon, 25 Oct 1999 01:52:52 +0000 (01:52 +0000)
  set STATIC.

server/confpars.c

index 293bc081514d311f585bf9832a8c90da7df738f3..ed3d4a474d1c6435af7004209c99aa735285ff2c 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: confpars.c,v 1.89 1999/10/24 17:19:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: confpars.c,v 1.90 1999/10/25 01:52:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1117,6 +1117,11 @@ void parse_host_declaration (cfile, group)
                        }
                }
                                
+               if (dynamicp)
+                       host -> flags |= HOST_DECL_DYNAMIC;
+               else
+                       host -> flags |= HOST_DECL_STATIC;
+
                status = enter_host (host, dynamicp, 0);
                if (status != ISC_R_SUCCESS)
                        parse_warn (cfile, "host %s: %s", host -> name,