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