1 /* 2 * (c) Copyright 1992 by Panagiotis Tsirigotis 3 * (c) Sections Copyright 1998-2001 by Rob Braun 4 * All rights reserved. The file named COPYRIGHT specifies the terms 5 * and conditions for redistribution. 6 */ 7 8 #ifndef ATTR_H 9 #define ATTR_H 10 11 /* 12 * $Id: attr.h,v 1.3 2005-10-05 17:15:33 bbraun Exp $ 13 */ 14 15 /* 16 * Attribute IDs 17 */ 18 #define A_NONE 0 19 #define A_WAIT 1 20 #define A_SOCKET_TYPE 2 21 #define A_PROTOCOL 3 22 #define A_USER 4 23 #define A_GROUP 5 24 #define A_SERVER 6 25 #define A_SERVER_ARGS 7 26 #define A_INSTANCES 8 27 #define A_ID 9 28 #define A_ONLY_FROM 10 29 #define A_ACCESS_TIMES 11 30 #define A_RPC_VERSION 12 31 #define A_LOG_TYPE 13 32 #define A_NO_ACCESS 14 33 #define A_TYPE 15 34 #define A_LOG_ON_FAILURE 16 35 #define A_LOG_ON_SUCCESS 17 36 #define A_ENV 18 37 #define A_PORT 19 38 #define A_PASSENV 20 39 #define A_FLAGS 21 40 #define A_RPC_NUMBER 22 41 #define A_NICE 23 42 #define A_REDIR 24 43 #define A_BIND 25 44 #define A_BANNER 26 45 #define A_PER_SOURCE 27 46 #define A_GROUPS 28 47 #define A_BANNER_SUCCESS 29 48 #define A_BANNER_FAIL 30 49 #define A_MAX_LOAD 31 50 #define A_CPS 32 51 #define A_SVCDISABLE 33 52 #define A_RLIMIT_AS 34 53 #define A_RLIMIT_CPU 35 54 #define A_RLIMIT_DATA 36 55 #define A_RLIMIT_RSS 37 56 #define A_RLIMIT_STACK 38 57 #define A_V6ONLY 39 58 #define A_DENY_TIME 40 59 #define A_UMASK 41 60 #define A_ENABLED 42 61 #define A_DISABLED 43 62 #define A_MDNS 44 63 #define A_LIBWRAP 45 64 65 /* 66 * SERVICE_ATTRIBUTES is the number of service attributes and also 67 * the number from which defaults-only attributes start. 68 */ 69 #define SERVICE_ATTRIBUTES ( A_MDNS + 1 ) 70 71 /* 72 * Mask of attributes that must be specified. 73 */ 74 #define NECESSARY_ATTRS ( XMASK( A_SOCKET_TYPE ) + XMASK( A_WAIT ) ) 75 #define NECESSARY_ATTRS_EXTERNAL ( XMASK( A_SERVER ) + XMASK( A_USER ) ) 76 #define NECESSARY_ATTRS_UNLISTED ( XMASK( A_PROTOCOL ) + XMASK( A_PORT ) ) 77 #define NECESSARY_ATTRS_UNLISTED_MUX ( XMASK( A_PROTOCOL ) ) 78 #define NECESSARY_ATTRS_RPC ( XMASK( A_PROTOCOL ) + \ 79 XMASK( A_RPC_VERSION ) ) 80 #define NECESSARY_ATTRS_RPC_UNLISTED XMASK( A_RPC_NUMBER ) 81 82 #endif /* ATTR_H */ 83