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  */
21*d04ccbb3Scarlsonj 
22*d04ccbb3Scarlsonj /*
23*d04ccbb3Scarlsonj  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*d04ccbb3Scarlsonj  * Use is subject to license terms.
25*d04ccbb3Scarlsonj  */
26*d04ccbb3Scarlsonj 
27*d04ccbb3Scarlsonj #ifndef _COMMON_H
28*d04ccbb3Scarlsonj #define	_COMMON_H
29*d04ccbb3Scarlsonj 
30*d04ccbb3Scarlsonj #include <sys/types.h>
31*d04ccbb3Scarlsonj 
32*d04ccbb3Scarlsonj /*
33*d04ccbb3Scarlsonj  * Common opaque structure definitions and values used throughout the dhcpagent
34*d04ccbb3Scarlsonj  * implementation.
35*d04ccbb3Scarlsonj  */
36*d04ccbb3Scarlsonj 
37*d04ccbb3Scarlsonj #ifdef __cplusplus
38*d04ccbb3Scarlsonj extern "C" {
39*d04ccbb3Scarlsonj #endif
40*d04ccbb3Scarlsonj 
41*d04ccbb3Scarlsonj /*
42*d04ccbb3Scarlsonj  * Things (unfortunately) required because we're in an XPG environment.
43*d04ccbb3Scarlsonj  */
44*d04ccbb3Scarlsonj #define	B_TRUE	_B_TRUE
45*d04ccbb3Scarlsonj #define	B_FALSE	_B_FALSE
46*d04ccbb3Scarlsonj 
47*d04ccbb3Scarlsonj struct dhcp_smach_s;
48*d04ccbb3Scarlsonj typedef struct dhcp_smach_s dhcp_smach_t;
49*d04ccbb3Scarlsonj struct dhcp_lease_s;
50*d04ccbb3Scarlsonj typedef struct dhcp_lease_s dhcp_lease_t;
51*d04ccbb3Scarlsonj struct dhcp_lif_s;
52*d04ccbb3Scarlsonj typedef struct dhcp_lif_s dhcp_lif_t;
53*d04ccbb3Scarlsonj struct dhcp_pif_s;
54*d04ccbb3Scarlsonj typedef struct dhcp_pif_s dhcp_pif_t;
55*d04ccbb3Scarlsonj typedef int script_callback_t(dhcp_smach_t *, void *);
56*d04ccbb3Scarlsonj struct dhcp_timer_s;
57*d04ccbb3Scarlsonj typedef struct dhcp_timer_s dhcp_timer_t;
58*d04ccbb3Scarlsonj struct dhcp_ipc_s;
59*d04ccbb3Scarlsonj typedef struct dhcp_ipc_s dhcp_ipc_t;
60*d04ccbb3Scarlsonj 
61*d04ccbb3Scarlsonj typedef int64_t monosec_t;		/* see README for details */
62*d04ccbb3Scarlsonj 
63*d04ccbb3Scarlsonj #ifdef __cplusplus
64*d04ccbb3Scarlsonj }
65*d04ccbb3Scarlsonj #endif
66*d04ccbb3Scarlsonj 
67*d04ccbb3Scarlsonj #endif /* _COMMON_H */
68