home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xntp3.zip / gizmo / gizmo.h < prev    next >
Text File  |  1989-09-17  |  2KB  |  85 lines

  1. /*
  2.  * GIZMO machine dependent declarations
  3.  */
  4.  
  5. /*
  6.  * No way to read variables from the gizmo's kernel, so we just hardwire
  7.  * a default tickadj and tick
  8.  */
  9. #define    GIZMO_HZ    60
  10. #define    GIZMO_TICKADJ    ((500 + GIZMO_HZ - 1) / GIZMO_HZ)
  11. #define    GIZMO_TICK    (1000000 / GIZMO_HZ)
  12.  
  13. /*
  14.  * Authentication keys are transmitted to the gizmo in the configuration
  15.  * info.  Unfortunately this is insecure (figure out why).  We hence
  16.  * encrypt each key one more time using some variation of the following
  17.  * key.  This doesn't make things any more secure, but at least
  18.  * gets the code in there until I figure out a better way.
  19.  */
  20. #define    GIZMO_KEY_L    0x589dd0a8
  21. #define    GIZMO_KEY_R    0x86b0d508
  22.  
  23. /*
  24.  * Size of the configuration array.  Make it large enough for a
  25.  * reasonable number of keys.
  26.  */
  27. #define    GIZMO_CONFIG_SIZE    4096
  28.  
  29. /*
  30.  * Configuration codes for the gizmo
  31.  */
  32. #define CONFIG_UNKNOWN        0
  33. #define    CONFIG_END        255
  34.  
  35. #define    CONFIG_PEER        1
  36. #define    CONFIG_SERVER        2
  37. #define    CONFIG_PRECISION    3
  38. #define    CONFIG_DRIFT        4
  39. #define    CONFIG_BROADCAST    5
  40. #define    CONFIG_BROADCASTCLIENT    6
  41. #define    CONFIG_AUTHENTICATE    7
  42. #define    CONFIG_KEYS        8
  43. #define    CONFIG_MONITOR        9
  44. #define    CONFIG_AUTHDELAY    10
  45. #define    CONFIG_RESTRICT        11
  46. #define    CONFIG_BDELAY        12
  47. #define    CONFIG_TRUSTEDKEY    13
  48. #define    CONFIG_REQUESTKEY    14
  49. #define    CONFIG_CONTROLKEY    15
  50. #define    CONFIG_TRAP        16
  51. #define    CONFIG_FUDGE        17
  52. #define    CONFIG_MAXSKEW        18
  53. #define    CONFIG_DEBUGLEVEL    100
  54. #define    CONFIG_SYSLOGHOST    101
  55.  
  56. #define    CONF_MOD_VERSION    1
  57. #define    CONF_MOD_KEY        2
  58. #define    CONF_MOD_MINPOLL    3
  59.  
  60. #define    CONF_RES_IGNORE        0x001
  61. #define    CONF_RES_NOSERVE    0x002
  62. #define    CONF_RES_NOTRUST    0x004
  63. #define    CONF_RES_NOQUERY    0x008
  64. #define    CONF_RES_NOMODIFY    0x010
  65. #define    CONF_RES_NOPEER        0x020
  66. #define    CONF_RES_NOTRAP        0x040
  67. #define    CONF_RES_LPTRAP        0x080
  68. #define    CONF_RES_NTPPORT    0x100
  69. #define    CONF_RES_MASK        0x1000
  70.  
  71. #define    CONF_TRAP_PORT        1
  72. #define    CONF_TRAP_INTERFACE    2
  73.  
  74. #define    CONF_FDG_TIME1        1
  75. #define    CONF_FDG_TIME2        2
  76. #define    CONF_FDG_VALUE1        3
  77. #define    CONF_FDG_VALUE2        4
  78. #define    CONF_FDG_FLAG1        5
  79. #define    CONF_FDG_FLAG2        6
  80. #define    CONF_FDG_FLAG3        7
  81. #define    CONF_FDG_FLAG4        8
  82.  
  83. #define    CONF_YORN_NO        1
  84. #define    CONF_YORN_YES        2
  85.