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