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