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.
12 * $Id: attr.h,v 1.3 2005/10/05 17:15:33 bbraun Exp $
20 #define A_SOCKET_TYPE 2
25 #define A_SERVER_ARGS 7
28 #define A_ONLY_FROM 10
29 #define A_ACCESS_TIMES 11
30 #define A_RPC_VERSION 12
32 #define A_NO_ACCESS 14
34 #define A_LOG_ON_FAILURE 16
35 #define A_LOG_ON_SUCCESS 17
40 #define A_RPC_NUMBER 22
45 #define A_PER_SOURCE 27
47 #define A_BANNER_SUCCESS 29
48 #define A_BANNER_FAIL 30
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
58 #define A_DENY_TIME 40
66 * SERVICE_ATTRIBUTES is the number of service attributes and also
67 * the number from which defaults-only attributes start.
69 #define SERVICE_ATTRIBUTES ( A_MDNS + 1 )
72 * Mask of attributes that must be specified.
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 )