home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / net / config.h next >
C/C++ Source or Header  |  1980-02-17  |  3KB  |  126 lines

  1. /* Copyright (c) 1979 Regents of the University of California */
  2. /*
  3.     This file corresponds to the following network:
  4.  
  5.                 A
  6.                 |
  7.                 |
  8.                 |
  9.                 |
  10.         Cory------------C--------------D
  11.          |        |           |
  12.          |        |           |
  13.          |        |           |
  14.          |        |           |
  15.         VAX        E          SRC
  16.  
  17.     The tables must be consistent.
  18. */
  19. char configA[] = {        /* to get to i, config[i] */
  20.     'a',000,'c','c','c',        /* a,b,c,d,e */
  21.     000,000,000,000,000,        /* f,g,h,i,j */
  22.     000,000,000,000,000,        /* k,l,m,n,o */
  23.     000,000,000,'c',000,        /* p,q,r,s,t */
  24.     000,'c',000,000,'c',        /* u,v,w,x,y */
  25.     000,0                /* z */
  26.     };
  27. char configB[] = {        /* to get to i, config[i] */
  28.     000,0                /* z */
  29.     };
  30. char configC[] = {        /* to get to i, config[i] */
  31.     'a',000,'c','d','e',        /* a,b,c,d,e */
  32.     000,000,000,000,000,        /* f,g,h,i,j */
  33.     000,000,000,000,000,        /* k,l,m,n,o */
  34.     000,000,000,'d',000,        /* p,q,r,s,t */
  35.     000,'y',000,000,'y',        /* u,v,w,x,y */
  36.     000,0                /* z */
  37.     };
  38. char configD[] = {        /* to get to i, config[i] */
  39.     'c',000,'c','d','c',        /* a,b,c,d,e */
  40.     000,000,000,000,000,        /* f,g,h,i,j */
  41.     000,000,000,000,000,        /* k,l,m,n,o */
  42.     000,000,000,'s',000,        /* p,q,r,s,t */
  43.     000,'c',000,000,'c',        /* u,v,w,x,y */
  44.     000,0                /* z */
  45.     };
  46. char configE[] = {        /* to get to i, config[i] */
  47.     'c',000,'c','c','e',        /* a,b,c,d,e */
  48.     000,000,000,000,000,        /* f,g,h,i,j */
  49.     000,000,000,000,000,        /* k,l,m,n,o */
  50.     000,000,000,'c',000,        /* p,q,r,s,t */
  51.     000,'c',000,000,'c',        /* u,v,w,x,y */
  52.     000,0                /* z */
  53.     };
  54. char configI[] = {        /* to get to i, config[i] */
  55.     000,0                /* z */
  56.     };
  57. char configQ[] = {        /* to get to i, config[i] */
  58.     000,0                /* z */
  59.     };
  60. char configS[] = {        /* to get to i, config[i] */
  61.     'd',000,'d','d','d',        /* a,b,c,d,e */
  62.     000,000,000,000,000,        /* f,g,h,i,j */
  63.     000,000,000,000,000,        /* k,l,m,n,o */
  64.     000,000,000,'s',000,        /* p,q,r,s,t */
  65.     000,'d',000,000,'d',        /* u,v,w,x,y */
  66.     000,0                /* z */
  67.     };
  68. char configV[] = {        /* to get to i, config[i] */
  69.     'y',000,'y','y','y',        /* a,b,c,d,e */
  70.     000,000,000,000,000,        /* f,g,h,i,j */
  71.     000,000,000,000,000,        /* k,l,m,n,o */
  72.     000,000,000,'y',000,        /* p,q,r,s,t */
  73.     000,'v',000,000,'y',        /* u,v,w,x,y */
  74.     000,0                /* z */
  75.     };
  76. char configY[] = {        /* to get to i, config[i] */
  77.     'c',000,'c','c','c',        /* a,b,c,d,e */
  78.     000,000,000,000,000,        /* f,g,h,i,j */
  79.     000,000,000,000,000,        /* k,l,m,n,o */
  80.     000,000,000,'c',000,        /* p,q,r,s,t */
  81.     000,'v',000,000,'y',        /* u,v,w,x,y */
  82.     000,0                /* z */
  83.     };
  84. /* this table is used by netlpr to do lpr w/o an acct
  85.    and by net and netdaemon to do pre-emption */
  86. /* sub.c uses the table in initdaemon to check machine
  87.    type - errormsg may be ignored */
  88. char machtype[]= {
  89.     M_CC, M_CC, M_CC, M_CC, M_CC,    /* a,b,c,d,e */
  90.     0, 0, 0, M_INGRES, 0,        /* f,g,h,i,j */
  91.     0, 0, 0, 0, 0,            /* k,l,m,n,o */
  92.     0, M_CC, 0, M_SRC, 0,        /* p,q,r,s,t */
  93.     0, M_VAX, 0, 0, M_CORY,        /* u,v,w,x,y */
  94.     0};                /* z */
  95. /* this is basically the default machine for each local machine */
  96. char remtable[] = {
  97.     'c','c','a','c','c',        /* a,b,c,d,e */
  98.     000,000,000,'y',000,        /* f,g,h,i,j */
  99.     000,000,000,000,000,        /* k,l,m,n,o */
  100.     000,'c',000,'d',000,        /* p,q,r,s,t */
  101.     000,'y',000,000,'v',        /* u,v,w,x,y */
  102.     000,0                /* z */
  103.     };
  104. /* bad login names */
  105. struct bstruct btable[] = {
  106.     "op", 'a',
  107.     0,0 };
  108. /* this table shows the correspondence between
  109.    machine names like 'Cory' and their internal
  110.    names, like 'y' */
  111. static struct tt {
  112.     char *bigname;
  113.     char lname;
  114.     } table[] = {
  115.     "A",    'a',
  116.     "B",    'b',
  117.     "C",    'c',
  118.     "D",    'd',
  119.     "E",    'e',
  120.     "INGRES", 'i',
  121.     "Q",    'q',
  122.     "SRC",    's',
  123.     "VAX",    'v',
  124.     "Cory",    'y',
  125.     0, 0 };
  126.