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