xref: /illumos-gate/usr/src/cmd/krb5/iprop/iprop_hdr.h (revision 7c478bd9)
1 /*
2  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 
7 #ifndef	_IPROP_HDR_H
8 #define	_IPROP_HDR_H
9 
10 #pragma ident	"%Z%%M%	%I%	%E% SMI"
11 
12 #ifdef	__cplusplus
13 extern "C" {
14 #endif
15 
16 /*
17  * This file has some defines common to the iprop client and
18  * server routines.
19  */
20 
21 /*
22  * Maximum size for each ulog entry is 2KB and maximum
23  * possible attribute-value pairs for each ulog entry is 20
24  */
25 #define	MAXENTRY_SIZE	2048
26 #define	MAXATTRS_SIZE	20
27 
28 #define	KIPROP_SVC_NAME	"kiprop"
29 #define	MAX_BACKOFF	300	/* Backoff for a maximum for 5 mts */
30 
31 enum iprop_role {
32 	IPROP_NULL = 0,
33 	IPROP_MASTER = 1,
34 	IPROP_SLAVE = 2
35 };
36 typedef enum iprop_role iprop_role;
37 
38 #ifdef	__cplusplus
39 }
40 #endif
41 
42 #endif /* !_IPROP_HDR_H */
43