|
root / base / usr / src / cmd / krb5 / iprop / iprop_hdr.h
iprop_hdr.h C 41 lines 718 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */


#ifndef	_IPROP_HDR_H
#define	_IPROP_HDR_H

#ifdef	__cplusplus
extern "C" {
#endif

/*
 * This file has some defines common to the iprop client and
 * server routines.
 */

/*
 * Maximum size for each ulog entry is 2KB and maximum
 * possible attribute-value pairs for each ulog entry is 20
 */
#define	MAXENTRY_SIZE	2048
#define	MAXATTRS_SIZE	20

#define	KIPROP_SVC_NAME	"kiprop"
#define	MAX_BACKOFF	300	/* Backoff for a maximum for 5 mts */

enum iprop_role {
	IPROP_NULL = 0,
	IPROP_MASTER = 1,
	IPROP_SLAVE = 2
};
typedef enum iprop_role iprop_role;

#ifdef	__cplusplus
}
#endif

#endif /* !_IPROP_HDR_H */