defaults.h (7c478bd9) | defaults.h (69bb4bb4) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright (c) 1999-2001 by Sun Microsystems, Inc. 24 * All rights reserved. | 22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. |
25 */ 26 27#ifndef DEFAULTS_H 28#define DEFAULTS_H 29 30#pragma ident "%Z%%M% %I% %E% SMI" 31 32#include <sys/types.h> --- 10 unchanged lines hidden (view full) --- 43 44/* 45 * tunable parameters -- keep in the same order as defaults[] in defaults.c 46 */ 47 48enum { 49 50 DF_RELEASE_ON_SIGTERM, /* send RELEASE on each if upon SIGTERM */ | 24 */ 25 26#ifndef DEFAULTS_H 27#define DEFAULTS_H 28 29#pragma ident "%Z%%M% %I% %E% SMI" 30 31#include <sys/types.h> --- 10 unchanged lines hidden (view full) --- 42 43/* 44 * tunable parameters -- keep in the same order as defaults[] in defaults.c 45 */ 46 47enum { 48 49 DF_RELEASE_ON_SIGTERM, /* send RELEASE on each if upon SIGTERM */ |
51 DF_IGNORE_FAILED_ARP, /* what to do if agent can't ARP */ | 50 _UNUSED_DF_IGNORE_FAILED_ARP, |
52 DF_OFFER_WAIT, /* how long to wait to collect offers */ | 51 DF_OFFER_WAIT, /* how long to wait to collect offers */ |
53 DF_ARP_WAIT, /* how long to wait for an ARP reply */ | 52 _UNUSED_DF_ARP_WAIT, |
54 DF_CLIENT_ID, /* our client id */ 55 DF_PARAM_REQUEST_LIST, /* our parameter request list */ 56 DF_REQUEST_HOSTNAME /* request hostname associated with interface */ 57}; 58 59#define DHCP_AGENT_DEFAULTS "/etc/default/dhcpagent" 60 61boolean_t df_get_bool(const char *, unsigned int); 62int df_get_int(const char *, unsigned int); 63const char *df_get_string(const char *, unsigned int); 64uchar_t *df_get_octet(const char *, unsigned int, unsigned int *); 65 66#ifdef __cplusplus 67} 68#endif 69 70#endif /* DEFAULTS_H */ | 53 DF_CLIENT_ID, /* our client id */ 54 DF_PARAM_REQUEST_LIST, /* our parameter request list */ 55 DF_REQUEST_HOSTNAME /* request hostname associated with interface */ 56}; 57 58#define DHCP_AGENT_DEFAULTS "/etc/default/dhcpagent" 59 60boolean_t df_get_bool(const char *, unsigned int); 61int df_get_int(const char *, unsigned int); 62const char *df_get_string(const char *, unsigned int); 63uchar_t *df_get_octet(const char *, unsigned int, unsigned int *); 64 65#ifdef __cplusplus 66} 67#endif 68 69#endif /* DEFAULTS_H */ |