xref: /dragonfly/include/rpcsvc/nis_tags.h (revision 7d3e9a5b)
1 /*
2  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3  * unrestricted use provided that this legend is included on all tape
4  * media and as a part of the software program in whole or part.  Users
5  * may copy or modify Sun RPC without charge, but are not authorized
6  * to license or distribute it to anyone else except as part of a product or
7  * program developed by the user.
8  *
9  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
10  * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
11  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
12  *
13  * Sun RPC is provided with no support and without any obligation on the
14  * part of Sun Microsystems, Inc. to assist in its use, correction,
15  * modification or enhancement.
16  *
17  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
19  * OR ANY PART THEREOF.
20  *
21  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
22  * or profits or other special, indirect and consequential damages, even if
23  * Sun has been advised of the possibility of such damages.
24  *
25  * Sun Microsystems, Inc.
26  * 2550 Garcia Avenue
27  * Mountain View, California  94043
28  */
29 
30 /*
31  * Copyright (c) 1991, Sun Microsystems Inc.
32  */
33 
34 /*
35  *	nis_tags.h
36  *
37  *	This file contains the tags and statistics definitions. It is
38  *	automatically included by nis.h
39  */
40 
41 #ifndef	_RPCSVC_NIS_TAGS_H
42 #define	_RPCSVC_NIS_TAGS_H
43 
44 /* From: #pragma ident	"@(#)nis_tags.h	1.10	94/05/03 SMI" */
45 /* from file: zns_tags.h	1.7 Copyright (c) 1990 Sun Microsystems */
46 
47 #ifndef ORIGINAL_DECLS
48 #define		NIS_DIR "data"
49 #endif
50 
51 /* Lookup and List function flags */
52 #define	FOLLOW_LINKS	(1<<0)	/* Follow link objects 			*/
53 #define	FOLLOW_PATH	(1<<1)	/* Follow the path in a table 		*/
54 #define	HARD_LOOKUP	(1<<2)	/* Block until successful 		*/
55 #define	ALL_RESULTS	(1<<3)	/* Retrieve all results 		*/
56 #define	NO_CACHE	(1<<4)	/* Do not return 'cached' results 	*/
57 #define	MASTER_ONLY	(1<<5)	/* Get value only from master server	*/
58 #define	EXPAND_NAME	(1<<6)	/* Expand partitially qualified names	*/
59 
60 /* Semantic modification for table operations flags */
61 #define	RETURN_RESULT	(1<<7)	/* Return resulting object to client    */
62 #define	ADD_OVERWRITE	(1<<8)	/* Allow overwrites on ADD		*/
63 #define	REM_MULTIPLE	(1<<9)	/* Allow wildcard deletes		*/
64 #define	MOD_SAMEOBJ	(1<<10)	/* Check modified object before write	*/
65 #define	ADD_RESERVED	(1<<11)	/* Spare ADD semantic			*/
66 #define	REM_RESERVED	(1<<12)	/* Spare REM semantic			*/
67 #ifdef ORIGINAL_DECLS
68 #define	MOD_RESERVED	(1<<13)	/* Spare MOD semantic			*/
69 #else
70 #define	MOD_EXCLUSIVE	(1<<13)	/* Modify no overwrite on modified keys	*/
71 #endif
72 
73 /* Transport specific modifications to the operation */
74 #define	USE_DGRAM	(1<<16) /* Use a datagram transport 		*/
75 #define	NO_AUTHINFO	(1<<17) /* Don't bother attaching auth info	*/
76 
77 /*
78  * Declarations for "standard" NIS+ tags
79  * State variable tags have values	0 - 2047
80  * Statistic tags have values		2048 - 65535
81  * User Tags have values		>2^16
82  */
83 #define	TAG_DEBUG	1	/* set debug level 		*/
84 #define	TAG_STATS	2	/* Enable/disable statistics 	*/
85 #define	TAG_GCACHE	3	/* Flush the Group Cache	*/
86 #ifndef ORIGINAL_DECLS
87 #define	TAG_GCACHE_ALL	TAG_GCACHE
88 #endif
89 #define	TAG_DCACHE	4	/* Flush the directory cache	*/
90 #ifndef ORIGINAL_DECLS
91 #define	TAG_DCACHE_ONE	TAG_DCACHE
92 #endif
93 #define	TAG_OCACHE	5	/* Flush the Object Cache	*/
94 #define	TAG_SECURE	6	/* Set the security level 	*/
95 #ifndef ORIGINAL_DECLS
96 #define	TAG_TCACHE_ONE	7	/* Flush the table cache	*/
97 #define	TAG_DCACHE_ALL	8	/* Flush entire directory cache */
98 #define TAG_TCACHE_ALL	9	/* Flush entire table cache	*/
99 #define	TAG_GCACHE_ONE	10	/* Flush one group object	*/
100 #define	TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO	*/
101 #endif
102 
103 #define	TAG_OPSTATS	2048	/* NIS+ operations statistics   */
104 #define	TAG_THREADS	2049	/* Child process/thread status  */
105 #define	TAG_HEAP	2050	/* Heap usage statistics	*/
106 #define	TAG_UPDATES	2051	/* Updates to this service	*/
107 #define	TAG_VISIBLE	2052	/* First update that isn't replicated */
108 #define	TAG_S_DCACHE	2053	/* Directory cache statistics	*/
109 #define	TAG_S_OCACHE	2054	/* Object cache statistics	*/
110 #define	TAG_S_GCACHE	2055	/* Group cache statistics	*/
111 #define	TAG_S_STORAGE	2056	/* Group cache statistics	*/
112 #define	TAG_UPTIME	2057	/* Time that server has been up */
113 #ifndef ORIGINAL_DECLS
114 #define	TAG_DIRLIST	2058    /* Dir served by this server	*/
115 #define	TAG_NISCOMPAT	2059    /* Whether supports NIS compat mode */
116 #define	TAG_DNSFORWARDING 2060	/* Whether DNS forwarding supported*/
117 #define	TAG_SECURITY_LEVEL 2061 /* Security level of the server */
118 #define	TAG_ROOTSERVER	2062	/* Whether root server		*/
119 #endif
120 
121 /*
122  * Declarations for the Group object flags. Currently
123  * there are only 3.
124  */
125 #define	IMPMEM_GROUPS  1	/* Implicit Membership allowed 	*/
126 #define	RECURS_GROUPS  2	/* Recursive Groups allowed 	*/
127 #define	NEGMEM_GROUPS  4	/* Negative Groups allowed	*/
128 
129 #endif	/* _RPCSVC_NIS_TAGS_H */
130