1*d04ccbb3Scarlsonj /*
2*d04ccbb3Scarlsonj  * CDDL HEADER START
3*d04ccbb3Scarlsonj  *
4*d04ccbb3Scarlsonj  * The contents of this file are subject to the terms of the
5*d04ccbb3Scarlsonj  * Common Development and Distribution License (the "License").
6*d04ccbb3Scarlsonj  * You may not use this file except in compliance with the License.
7*d04ccbb3Scarlsonj  *
8*d04ccbb3Scarlsonj  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*d04ccbb3Scarlsonj  * or http://www.opensolaris.org/os/licensing.
10*d04ccbb3Scarlsonj  * See the License for the specific language governing permissions
11*d04ccbb3Scarlsonj  * and limitations under the License.
12*d04ccbb3Scarlsonj  *
13*d04ccbb3Scarlsonj  * When distributing Covered Code, include this CDDL HEADER in each
14*d04ccbb3Scarlsonj  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*d04ccbb3Scarlsonj  * If applicable, add the following below this CDDL HEADER, with the
16*d04ccbb3Scarlsonj  * fields enclosed by brackets "[]" replaced with your own identifying
17*d04ccbb3Scarlsonj  * information: Portions Copyright [yyyy] [name of copyright owner]
18*d04ccbb3Scarlsonj  *
19*d04ccbb3Scarlsonj  * CDDL HEADER END
20*d04ccbb3Scarlsonj  */
22*d04ccbb3Scarlsonj /*
23*d04ccbb3Scarlsonj  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*d04ccbb3Scarlsonj  * Use is subject to license terms.
25*d04ccbb3Scarlsonj  */
27*d04ccbb3Scarlsonj #ifndef _COMMON_H
28*d04ccbb3Scarlsonj #define	_COMMON_H
30*d04ccbb3Scarlsonj #pragma ident	"%Z%%M%	%I%	%E% SMI"
32*d04ccbb3Scarlsonj #include <sys/types.h>
34*d04ccbb3Scarlsonj /*
35*d04ccbb3Scarlsonj  * Common opaque structure definitions and values used throughout the dhcpagent
36*d04ccbb3Scarlsonj  * implementation.
37*d04ccbb3Scarlsonj  */
39*d04ccbb3Scarlsonj #ifdef __cplusplus
40*d04ccbb3Scarlsonj extern "C" {
41*d04ccbb3Scarlsonj #endif
43*d04ccbb3Scarlsonj /*
44*d04ccbb3Scarlsonj  * Things (unfortunately) required because we're in an XPG environment.
45*d04ccbb3Scarlsonj  */
46*d04ccbb3Scarlsonj #define	B_TRUE	_B_TRUE
47*d04ccbb3Scarlsonj #define	B_FALSE	_B_FALSE
49*d04ccbb3Scarlsonj struct dhcp_smach_s;
50*d04ccbb3Scarlsonj typedef struct dhcp_smach_s dhcp_smach_t;
51*d04ccbb3Scarlsonj struct dhcp_lease_s;
52*d04ccbb3Scarlsonj typedef struct dhcp_lease_s dhcp_lease_t;
53*d04ccbb3Scarlsonj struct dhcp_lif_s;
54*d04ccbb3Scarlsonj typedef struct dhcp_lif_s dhcp_lif_t;
55*d04ccbb3Scarlsonj struct dhcp_pif_s;
56*d04ccbb3Scarlsonj typedef struct dhcp_pif_s dhcp_pif_t;
57*d04ccbb3Scarlsonj typedef int script_callback_t(dhcp_smach_t *, void *);
58*d04ccbb3Scarlsonj struct dhcp_timer_s;
59*d04ccbb3Scarlsonj typedef struct dhcp_timer_s dhcp_timer_t;
60*d04ccbb3Scarlsonj struct dhcp_ipc_s;
61*d04ccbb3Scarlsonj typedef struct dhcp_ipc_s dhcp_ipc_t;
63*d04ccbb3Scarlsonj typedef int64_t monosec_t;		/* see README for details */
65*d04ccbb3Scarlsonj #ifdef __cplusplus
66*d04ccbb3Scarlsonj }
67*d04ccbb3Scarlsonj #endif
69*d04ccbb3Scarlsonj #endif /* _COMMON_H */