home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / xinetd.2.0.6 / attr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-22  |  1.4 KB  |  60 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7. #ifndef ATTR_H
  8. #define ATTR_H
  9.  
  10. /*
  11.  * $Id: attr.h,v 5.1 1992/10/31 23:56:10 panos Exp $
  12.  */
  13.  
  14. /*
  15.  * Attribute IDs
  16.  */
  17. #define A_NONE             0
  18. #define A_WAIT             1
  19. #define A_SOCKET_TYPE      2
  20. #define A_PROTOCOL         3
  21. #define A_USER             4
  22. #define A_GROUP            5
  23. #define A_SERVER           6
  24. #define A_SERVER_ARGS      7
  25. #define A_INSTANCES        8
  26. #define A_ID                    9
  27. #define A_ONLY_FROM        10
  28. #define A_ACCESS_TIMES     11
  29. #define A_RPC_VERSION        12
  30. #define A_LOG_TYPE            13
  31. #define A_NO_ACCESS            14
  32. #define A_TYPE                    15
  33. #define A_LOG_ON_FAILURE    16
  34. #define A_LOG_ON_SUCCESS    17
  35. #define A_ENV                    18
  36. #define A_PORT                    19
  37. #define A_PASSENV                20
  38. #define A_FLAGS                21
  39.  
  40. /*
  41.  * SERVICE_ATTRIBUTES is the number of service attributes and also
  42.  * the number from which defaults-only attributes start.
  43.  */
  44. #define SERVICE_ATTRIBUTES        ( A_FLAGS + 1 )
  45.  
  46. #define A_DISABLED            ( SERVICE_ATTRIBUTES )
  47.  
  48.  
  49. /*
  50.  * Mask of attributes that must be specified.
  51.  */
  52. #define NECESSARY_ATTRIBUTES     ( MASK( A_SOCKET_TYPE ) + MASK( A_WAIT ) )
  53.  
  54. #define NECESSARY_ATTRIBUTES_EXTERNAL  MASK( A_SERVER )
  55. #define NECESSARY_ATTRIBUTES_RPC       MASK( A_PROTOCOL )
  56. #define NECESSARY_ATTRIBUTES_LISTED    MASK( A_USER )
  57. #define NECESSARY_ATTRIBUTES_UNLISTED  ( MASK( A_PROTOCOL ) + MASK( A_PORT ) )
  58.  
  59. #endif    /* ATTR_H */
  60.