xref: /onnv-gate/usr/src/lib/libdhcpagent/common/dhcp_stable.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 _DHCP_STABLE_H
28*3431Scarlsonj #define	_DHCP_STABLE_H
29*3431Scarlsonj 
30*3431Scarlsonj #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*3431Scarlsonj 
32*3431Scarlsonj /*
33*3431Scarlsonj  * This module reads and writes the stable identifier values, DUID and IAID.
34*3431Scarlsonj  */
35*3431Scarlsonj 
36*3431Scarlsonj #ifdef __cplusplus
37*3431Scarlsonj extern "C" {
38*3431Scarlsonj #endif
39*3431Scarlsonj 
40*3431Scarlsonj #include <sys/types.h>
41*3431Scarlsonj 
42*3431Scarlsonj extern uchar_t	*read_stable_duid(size_t *);
43*3431Scarlsonj extern int	write_stable_duid(const uchar_t *, size_t);
44*3431Scarlsonj extern uchar_t	*make_stable_duid(const char *, size_t *);
45*3431Scarlsonj 
46*3431Scarlsonj extern uint32_t	read_stable_iaid(const char *);
47*3431Scarlsonj extern int	write_stable_iaid(const char *, uint32_t);
48*3431Scarlsonj extern uint32_t	make_stable_iaid(const char *, uint32_t);
49*3431Scarlsonj 
50*3431Scarlsonj #ifdef __cplusplus
51*3431Scarlsonj }
52*3431Scarlsonj #endif
53*3431Scarlsonj 
54*3431Scarlsonj #endif /* _DHCP_STABLE_H */
55