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