xref: /illumos-gate/usr/src/cmd/krb5/iprop/iprop_hdr.h (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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 #ifdef	__cplusplus
11 extern "C" {
12 #endif
13 
14 /*
15  * This file has some defines common to the iprop client and
16  * server routines.
17  */
18 
19 /*
20  * Maximum size for each ulog entry is 2KB and maximum
21  * possible attribute-value pairs for each ulog entry is 20
22  */
23 #define	MAXENTRY_SIZE	2048
24 #define	MAXATTRS_SIZE	20
25 
26 #define	KIPROP_SVC_NAME	"kiprop"
27 #define	MAX_BACKOFF	300	/* Backoff for a maximum for 5 mts */
28 
29 enum iprop_role {
30 	IPROP_NULL = 0,
31 	IPROP_MASTER = 1,
32 	IPROP_SLAVE = 2
33 };
34 typedef enum iprop_role iprop_role;
35 
36 #ifdef	__cplusplus
37 }
38 #endif
39 
40 #endif /* !_IPROP_HDR_H */
41