1 divert(-1)
   2 #
   3 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
   4 # Use is subject to license terms.
   5 #
   6 # CDDL HEADER START
   7 #
   8 # The contents of this file are subject to the terms of the
   9 # Common Development and Distribution License, Version 1.0 only
  10 # (the "License").  You may not use this file except in compliance
  11 # with the License.
  12 #
  13 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  14 # or http://www.opensolaris.org/os/licensing.
  15 # See the License for the specific language governing permissions
  16 # and limitations under the License.
  17 #
  18 # When distributing Covered Code, include this CDDL HEADER in each
  19 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  20 # If applicable, add the following below this CDDL HEADER, with the
  21 # fields enclosed by brackets "[]" replaced with your own identifying
  22 # information: Portions Copyright [yyyy] [name of copyright owner]
  23 #
  24 # CDDL HEADER END
  25 #
  26 #ident  "%Z%%M% %I%     %E% SMI"
  27 #
  28 # Select the appropriate type of output format based on whether -Djava is set
  29 # on the command line
  30 ifdef(`java', `define(defdef, `    public static final String   $1 = "$1";')', `define(defdef, `defint($1,"$1")')')
  31 ifdef(`java', `define(defstr, `    public static final String   $1 = $2;')', `define(defstr, `defint($1,$2)')')
  32 ifdef(`java', `define(defint, `    public static final int      $1 = $2;')', `define(defint, `#define   $1      $2')')
  33 # End of opening definitions; everything after next line is going in the output
  34 divert(0)dnl
  35 /*
  36  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  37  * Use is subject to license terms.
  38  *
  39  * This include file is generated from a m4 source file. Do not
  40  * modify this file.
  41  */
  42 
  43 ifdef(`java', `package com.sun.dhcpmgr.data;
  44 ', `#ifndef _DHCP_SVC_CONFKEY_H
  45 #define _DHCP_SVC_CONFKEY_H
  46 
  47 #pragma ident   "%Z'`%%'`M%     %'`I%   %'`E% SMI"')
  48 ifdef(`java', `/**
  49  * DHCP server configuration parameters.
  50  */
  51 public interface DhcpConfigOpts {', `
  52 #ifdef  __cplusplus')
  53 ifdef(`java', `dnl', extern "C" {)
  54 ifdef(`java', `dnl', `#endif
  55 ')
  56 /* Definitions for valid config file parameters */
  57 defstr(DSVC_CK_DAEMON_ENABLED, "DAEMON_ENABLED")
  58 defstr(DSVC_CK_RUN_MODE, "RUN_MODE")
  59 defstr(DSVC_CK_VERBOSE, "VERBOSE")
  60 defstr(DSVC_CK_RELAY_HOPS, "RELAY_HOPS")
  61 defstr(DSVC_CK_INTERFACES, "INTERFACES")
  62 defstr(DSVC_CK_ICMP_VERIFY, "ICMP_VERIFY")
  63 defstr(DSVC_CK_OFFER_CACHE_TIMEOUT, "OFFER_CACHE_TIMEOUT")
  64 defstr(DSVC_CK_RESCAN_INTERVAL, "RESCAN_INTERVAL")
  65 defstr(DSVC_CK_LOGGING_FACILITY, "LOGGING_FACILITY")
  66 defstr(DSVC_CK_BOOTP_COMPAT, "BOOTP_COMPAT")
  67 defstr(DSVC_CK_RELAY_DESTINATIONS, "RELAY_DESTINATIONS")
  68 defstr(DSVC_CK_RESOURCE, "RESOURCE")
  69 defstr(DSVC_CK_RESOURCE_CONFIG, "RESOURCE_CONFIG")
  70 defstr(DSVC_CK_NSU_TIMEOUT, "UPDATE_TIMEOUT")
  71 defstr(DSVC_CK_PATH, "PATH")
  72 defstr(DSVC_CK_CONVER, "CONVER")
  73 defstr(DSVC_CK_HOSTS_RESOURCE, "HOSTS_RESOURCE")
  74 defstr(DSVC_CK_HOSTS_DOMAIN, "HOSTS_DOMAIN")
  75 defstr(DSVC_CK_MAX_THREADS, "MAX_THREADS")
  76 defstr(DSVC_CK_MAX_CLIENTS, "MAX_CLIENTS")
  77 defstr(DSVC_CK_LEASE_MIN_LRU, "LEASE_MIN_LRU")
  78 defstr(DSVC_CK_CACHE_TIMEOUT, "CACHE_TIMEOUT")
  79 defstr(DSVC_CK_RENOG_INTERVAL, "SECONDARY_SERVER_TIMEOUT")
  80 defstr(DSVC_CK_OWNER_IP, "OWNER_IP")
  81 
  82 /* Definitions for DEBUG config file parameters */
  83 defstr(DSVC_CK_DBG_PORT_OFFSET, "DEBUG_PORT_OFFSET")
  84 defstr(DSVC_CK_DBG_MEMORY_NET, "DEBUG_MEMORY_NET")
  85 
  86 /* Definitions for valid HOSTS_RESOURCE settings */
  87 defstr(DSVC_CV_NISPLUS, "nisplus")
  88 defstr(DSVC_CV_FILES, "files")
  89 defstr(DSVC_CV_DNS, "dns")
  90 
  91 /* Definitions for valid BOOTP_COMPAT settings */
  92 defstr(DSVC_CV_AUTOMATIC, "automatic")
  93 defstr(DSVC_CV_MANUAL, "manual")
  94 
  95 /* Definitions for valid LOGGING_FACILITY settings */
  96 defint(DSVC_CV_LOGGING_FACILITY_MIN, 0)
  97 defint(DSVC_CV_LOGGING_FACILITY_MAX, 7)
  98 
  99 /* Definitions for valid RUN_MODE settings */
 100 defstr(DSVC_CV_RELAY, "relay")
 101 defstr(DSVC_CV_SERVER, "server")
 102 
 103 /* Definitions for valid boolean values */
 104 defstr(DSVC_CV_TRUE, "TRUE")
 105 defstr(DSVC_CV_FALSE, "FALSE")
 106 
 107 /* Definitions for server config for unspecified options */
 108 defint(DSVC_CV_HOPS, 4)
 109 defint(DSVC_CV_OFFER_TTL, 10)
 110 defint(DSVC_CV_CACHE_TTL, 10)
 111 defint(DSVC_CV_NSU_TO, 15)
 112 defint(DSVC_CV_MIN_LRU, 60)
 113 defint(DSVC_CV_RENOG_INT, 20)
 114 
 115 /* Definitions for server config for DEBUG options */
 116 defint(DSVC_CV_DBG_PORT_OFFSET, 0)
 117 ifdef(`java', `dnl', `
 118 #ifdef  __cplusplus')
 119 }
 120 ifdef(`java', `dnl', `#endif
 121 ')
 122 ifdef(`java', `dnl', `#endif    /* !_DHCP_SVC_CONFKEY_H */')