1272850Shrs/*-
2272850Shrs * Copyright (c) 2010, Oracle America, Inc.
3272850Shrs *
4272850Shrs * Redistribution and use in source and binary forms, with or without
5272850Shrs * modification, are permitted provided that the following conditions are
6272850Shrs * met:
7272850Shrs *
8272850Shrs *     * Redistributions of source code must retain the above copyright
9272850Shrs *       notice, this list of conditions and the following disclaimer.
10272850Shrs *     * Redistributions in binary form must reproduce the above
11272850Shrs *       copyright notice, this list of conditions and the following
12272850Shrs *       disclaimer in the documentation and/or other materials
13272850Shrs *       provided with the distribution.
14272850Shrs *     * Neither the name of the "Oracle America, Inc." nor the names of its
15272850Shrs *       contributors may be used to endorse or promote products derived
16272850Shrs *       from this software without specific prior written permission.
17272850Shrs *
18272850Shrs *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19272850Shrs *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20272850Shrs *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21272850Shrs *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22272850Shrs *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23272850Shrs *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24272850Shrs *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25272850Shrs *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26272850Shrs *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27272850Shrs *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28272850Shrs *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29272850Shrs *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3026206Swpaul */
3126206Swpaul
3226206Swpaul/*
3326206Swpaul * Copyright (c) 1991, Sun Microsystems Inc.
3426206Swpaul */
3526206Swpaul
3626206Swpaul/*
3726206Swpaul *	nis_tags.h
3826206Swpaul *
3926206Swpaul *	This file contains the tags and statistics definitions. It is
4026206Swpaul *	automatically included by nis.h
4126206Swpaul */
4226206Swpaul
4326206Swpaul#ifndef	_RPCSVC_NIS_TAGS_H
4426206Swpaul#define	_RPCSVC_NIS_TAGS_H
4526206Swpaul
46272850Shrs/* $FreeBSD$ */
4726206Swpaul/* From: #pragma ident	"@(#)nis_tags.h	1.10	94/05/03 SMI" */
4826206Swpaul/* from file: zns_tags.h	1.7 Copyright (c) 1990 Sun Microsystems */
4926206Swpaul
5026206Swpaul#ifdef	__cplusplus
5126206Swpaulextern "C" {
5226206Swpaul#endif
5326206Swpaul
5426206Swpaul#ifndef ORIGINAL_DECLS
5526206Swpaul#define		NIS_DIR "data"
5626206Swpaul#endif
5726206Swpaul
5826206Swpaul/* Lookup and List function flags */
5926206Swpaul#define	FOLLOW_LINKS	(1<<0)	/* Follow link objects 			*/
6026206Swpaul#define	FOLLOW_PATH	(1<<1)	/* Follow the path in a table 		*/
6126206Swpaul#define	HARD_LOOKUP	(1<<2)	/* Block until successful 		*/
6226206Swpaul#define	ALL_RESULTS	(1<<3)	/* Retrieve all results 		*/
6326206Swpaul#define	NO_CACHE	(1<<4)	/* Do not return 'cached' results 	*/
6426206Swpaul#define	MASTER_ONLY	(1<<5)	/* Get value only from master server	*/
6526206Swpaul#define	EXPAND_NAME	(1<<6)	/* Expand partitially qualified names	*/
6626206Swpaul
6726206Swpaul/* Semantic modification for table operations flags */
6826206Swpaul#define	RETURN_RESULT	(1<<7)	/* Return resulting object to client    */
6926206Swpaul#define	ADD_OVERWRITE	(1<<8)	/* Allow overwrites on ADD		*/
7026206Swpaul#define	REM_MULTIPLE	(1<<9)	/* Allow wildcard deletes		*/
7126206Swpaul#define	MOD_SAMEOBJ	(1<<10)	/* Check modified object before write	*/
7226206Swpaul#define	ADD_RESERVED	(1<<11)	/* Spare ADD semantic			*/
7326206Swpaul#define	REM_RESERVED	(1<<12)	/* Spare REM semantic			*/
7426206Swpaul#ifdef ORIGINAL_DECLS
7526206Swpaul#define	MOD_RESERVED	(1<<13)	/* Spare MOD semantic			*/
7626206Swpaul#else
7726206Swpaul#define	MOD_EXCLUSIVE	(1<<13)	/* Modify no overwrite on modified keys	*/
7826206Swpaul#endif
7926206Swpaul
8026206Swpaul/* Transport specific modifications to the operation */
8126206Swpaul#define	USE_DGRAM	(1<<16) /* Use a datagram transport 		*/
8226206Swpaul#define	NO_AUTHINFO	(1<<17) /* Don't bother attaching auth info	*/
8326206Swpaul
8426206Swpaul/*
8526206Swpaul * Declarations for "standard" NIS+ tags
8626206Swpaul * State variable tags have values	0 - 2047
8726206Swpaul * Statistic tags have values		2048 - 65535
8826206Swpaul * User Tags have values		>2^16
8926206Swpaul */
9026206Swpaul#define	TAG_DEBUG	1	/* set debug level 		*/
9126206Swpaul#define	TAG_STATS	2	/* Enable/disable statistics 	*/
9226206Swpaul#define	TAG_GCACHE	3	/* Flush the Group Cache	*/
9326206Swpaul#ifndef ORIGINAL_DECLS
9426206Swpaul#define	TAG_GCACHE_ALL	TAG_GCACHE
9526206Swpaul#endif
9626206Swpaul#define	TAG_DCACHE	4	/* Flush the directory cache	*/
9726206Swpaul#ifndef ORIGINAL_DECLS
9826206Swpaul#define	TAG_DCACHE_ONE	TAG_DCACHE
9926206Swpaul#endif
10026206Swpaul#define	TAG_OCACHE	5	/* Flush the Object Cache	*/
10126206Swpaul#define	TAG_SECURE	6	/* Set the security level 	*/
10226206Swpaul#ifndef ORIGINAL_DECLS
10326206Swpaul#define	TAG_TCACHE_ONE	7	/* Flush the table cache	*/
10426206Swpaul#define	TAG_DCACHE_ALL	8	/* Flush entire directory cache */
10526206Swpaul#define TAG_TCACHE_ALL	9	/* Flush entire table cache	*/
10626206Swpaul#define	TAG_GCACHE_ONE	10	/* Flush one group object	*/
10726206Swpaul#define	TAG_DCACHE_ONE_REFRESH 11 /* Flush and refresh one DO	*/
10826206Swpaul#endif
10926206Swpaul
11026206Swpaul#define	TAG_OPSTATS	2048	/* NIS+ operations statistics   */
11126206Swpaul#define	TAG_THREADS	2049	/* Child process/thread status  */
11226206Swpaul#define	TAG_HEAP	2050	/* Heap usage statistics	*/
11326206Swpaul#define	TAG_UPDATES	2051	/* Updates to this service	*/
11426206Swpaul#define	TAG_VISIBLE	2052	/* First update that isn't replicated */
11526206Swpaul#define	TAG_S_DCACHE	2053	/* Directory cache statistics	*/
11626206Swpaul#define	TAG_S_OCACHE	2054	/* Object cache statistics	*/
11726206Swpaul#define	TAG_S_GCACHE	2055	/* Group cache statistics	*/
11826206Swpaul#define	TAG_S_STORAGE	2056	/* Group cache statistics	*/
11926206Swpaul#define	TAG_UPTIME	2057	/* Time that server has been up */
12026206Swpaul#ifndef ORIGINAL_DECLS
12126206Swpaul#define	TAG_DIRLIST	2058    /* Dir served by this server	*/
12226206Swpaul#define	TAG_NISCOMPAT	2059    /* Whether supports NIS compat mode */
12326206Swpaul#define	TAG_DNSFORWARDING 2060	/* Whether DNS forwarding supported*/
12426206Swpaul#define	TAG_SECURITY_LEVEL 2061 /* Security level of the server */
12526206Swpaul#define	TAG_ROOTSERVER	2062	/* Whether root server		*/
12626206Swpaul#endif
12726206Swpaul
12826206Swpaul/*
12926206Swpaul * Declarations for the Group object flags. Currently
13026206Swpaul * there are only 3.
13126206Swpaul */
13226206Swpaul#define	IMPMEM_GROUPS  1	/* Implicit Membership allowed 	*/
13326206Swpaul#define	RECURS_GROUPS  2	/* Recursive Groups allowed 	*/
13426206Swpaul#define	NEGMEM_GROUPS  4	/* Negative Groups allowed	*/
13526206Swpaul
13626206Swpaul#ifdef	__cplusplus
13726206Swpaul}
13826206Swpaul#endif
13926206Swpaul
14026206Swpaul#endif	/* _RPCSVC_NIS_TAGS_H */
141