xref: /onnv-gate/usr/src/lib/libdhcpsvc/head/dhcp_svc_confkey.m4 (revision 0:68f95e015346)
1divert(-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
30ifdef(`java', `define(defdef, `    public static final String	$1 = "$1";')', `define(defdef, `defint($1,"$1")')')
31ifdef(`java', `define(defstr, `    public static final String	$1 = $2;')', `define(defstr, `defint($1,$2)')')
32ifdef(`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
34divert(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
43ifdef(`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"')
48ifdef(`java', `/**
49 * DHCP server configuration parameters.
50 */
51public interface DhcpConfigOpts {', `
52#ifdef	__cplusplus')
53ifdef(`java', `dnl', extern "C" {)
54ifdef(`java', `dnl', `#endif
55')
56/* Definitions for valid config file parameters */
57defstr(DSVC_CK_DAEMON_ENABLED, "DAEMON_ENABLED")
58defstr(DSVC_CK_RUN_MODE, "RUN_MODE")
59defstr(DSVC_CK_VERBOSE, "VERBOSE")
60defstr(DSVC_CK_RELAY_HOPS, "RELAY_HOPS")
61defstr(DSVC_CK_INTERFACES, "INTERFACES")
62defstr(DSVC_CK_ICMP_VERIFY, "ICMP_VERIFY")
63defstr(DSVC_CK_OFFER_CACHE_TIMEOUT, "OFFER_CACHE_TIMEOUT")
64defstr(DSVC_CK_RESCAN_INTERVAL, "RESCAN_INTERVAL")
65defstr(DSVC_CK_LOGGING_FACILITY, "LOGGING_FACILITY")
66defstr(DSVC_CK_BOOTP_COMPAT, "BOOTP_COMPAT")
67defstr(DSVC_CK_RELAY_DESTINATIONS, "RELAY_DESTINATIONS")
68defstr(DSVC_CK_RESOURCE, "RESOURCE")
69defstr(DSVC_CK_RESOURCE_CONFIG, "RESOURCE_CONFIG")
70defstr(DSVC_CK_NSU_TIMEOUT, "UPDATE_TIMEOUT")
71defstr(DSVC_CK_PATH, "PATH")
72defstr(DSVC_CK_CONVER, "CONVER")
73defstr(DSVC_CK_HOSTS_RESOURCE, "HOSTS_RESOURCE")
74defstr(DSVC_CK_HOSTS_DOMAIN, "HOSTS_DOMAIN")
75defstr(DSVC_CK_MAX_THREADS, "MAX_THREADS")
76defstr(DSVC_CK_MAX_CLIENTS, "MAX_CLIENTS")
77defstr(DSVC_CK_LEASE_MIN_LRU, "LEASE_MIN_LRU")
78defstr(DSVC_CK_CACHE_TIMEOUT, "CACHE_TIMEOUT")
79defstr(DSVC_CK_RENOG_INTERVAL, "SECONDARY_SERVER_TIMEOUT")
80defstr(DSVC_CK_OWNER_IP, "OWNER_IP")
81
82/* Definitions for DEBUG config file parameters */
83defstr(DSVC_CK_DBG_PORT_OFFSET, "DEBUG_PORT_OFFSET")
84defstr(DSVC_CK_DBG_MEMORY_NET, "DEBUG_MEMORY_NET")
85
86/* Definitions for valid HOSTS_RESOURCE settings */
87defstr(DSVC_CV_NISPLUS, "nisplus")
88defstr(DSVC_CV_FILES, "files")
89defstr(DSVC_CV_DNS, "dns")
90
91/* Definitions for valid BOOTP_COMPAT settings */
92defstr(DSVC_CV_AUTOMATIC, "automatic")
93defstr(DSVC_CV_MANUAL, "manual")
94
95/* Definitions for valid LOGGING_FACILITY settings */
96defint(DSVC_CV_LOGGING_FACILITY_MIN, 0)
97defint(DSVC_CV_LOGGING_FACILITY_MAX, 7)
98
99/* Definitions for valid RUN_MODE settings */
100defstr(DSVC_CV_RELAY, "relay")
101defstr(DSVC_CV_SERVER, "server")
102
103/* Definitions for valid boolean values */
104defstr(DSVC_CV_TRUE, "TRUE")
105defstr(DSVC_CV_FALSE, "FALSE")
106
107/* Definitions for server config for unspecified options */
108defint(DSVC_CV_HOPS, 4)
109defint(DSVC_CV_OFFER_TTL, 10)
110defint(DSVC_CV_CACHE_TTL, 10)
111defint(DSVC_CV_NSU_TO, 15)
112defint(DSVC_CV_MIN_LRU, 60)
113defint(DSVC_CV_RENOG_INT, 20)
114
115/* Definitions for server config for DEBUG options */
116defint(DSVC_CV_DBG_PORT_OFFSET, 0)
117ifdef(`java', `dnl', `
118#ifdef	__cplusplus')
119}
120ifdef(`java', `dnl', `#endif
121')
122ifdef(`java', `dnl', `#endif	/* !_DHCP_SVC_CONFKEY_H */')
123