home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / NCSA / TEL2307S.ZIP / INCLUDE / CONFILE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-03  |  9.9 KB  |  318 lines

  1. /*
  2. *    confile.h
  3. *  Used for config.tel options
  4. ****************************************************************************
  5. *                                                                          *
  6. *                                                                          *
  7. *      NCSA Telnet                                                         *
  8. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  9. *      Additions by Kurt Mahan, Heeren Pathak, & Quincey Koziol            *
  10. *                                                                          *
  11. *      National Center for Supercomputing Applications                     *
  12. *      152 Computing Applications Building                                 *
  13. *      605 E. Springfield Ave.                                             *
  14. *      Champaign, IL  61820                                                *
  15. *                                                                          *
  16. ****************************************************************************
  17. *   Quincey Koziol
  18. *   Defines for config.tel options and variables
  19. */
  20.  
  21. #ifndef CONFILE_H
  22. #define CONFILE_H
  23.  
  24. /*
  25. *  Global Variables
  26. */
  27. #ifdef LATER
  28. #define    NETX25    1
  29. #endif
  30.  
  31. /* Initial configuration.  struct config found in hostform.h */
  32. #ifndef CONFIG_MASTER
  33. extern
  34. #endif
  35. struct config Scon
  36. #ifdef CONFIG_MASTER
  37.     ={
  38.         0,0,0,0,            /* subnet mask */
  39.         3,                    /* interrupt # */
  40.         127,0,0,1,            /* ip num */
  41.         255,255,255,255,    /* broadcast IP address */
  42.         "",                    /* my name */
  43.         7,1,0x70,            /* default colors */
  44.         "atalk",            /* network hardware */
  45.         "ega",                /* graphics hardware */
  46.         0,                  /* 43/50 screen status */
  47.         "VT100",            /* terminal type */
  48.         "*",                /* AppleTalk zone */
  49.         NULL,                /* default domain */
  50.         NULL,                /* capture file */
  51.         NULL,                /* password file */
  52.         NULL,                /* hp file */
  53.         NULL,                /* ps file */
  54.         NULL,                /* tek file */
  55.         -1,                    /* cursor start line */
  56.         -1,                    /* cursor end line */
  57.         1,                    /* name server */
  58.         4,                    /* time out of UDP domain request */
  59.         3,                    /* number of retries */
  60.         0x0d000,            /* segment address */
  61.         0x0300,                /* I/O address */
  62.         0,                    /* do we have a net mask */
  63.         0,                    /* bios flag */
  64.         1,                    /* tek flag */
  65.         0,                  /* ftp flag */
  66.         0,                  /* rcp flag */
  67.         1,                    /* thin wire default!  thick=0 used for 3c503*/
  68.         0,                    /* windows go away when closed (0) - no, (1) - yes */
  69.         1,                    /* display clock? (0) - no, (1) - yes */
  70.         1                   /* autoscroll in scrollback is on */
  71. }
  72. #endif
  73. ;
  74.  
  75. #ifndef NET14
  76. #ifndef CONFIG_MASTER
  77. extern
  78. #endif
  79. char *commandLineOveride    /* for args to -e options */
  80. #ifdef CONFIG_MASTER
  81. =NULL
  82. #endif
  83. ;
  84. #endif
  85.  
  86. /*
  87. *   States for config file reading state machine.
  88. *   One for each type of keyword and some for controlling.
  89. */
  90.  
  91. #define    CONNAME        101
  92. #define CONHOST        102
  93. #define CONIP        103
  94. #define CONGATE        104
  95. #define CONCOLOR    105
  96. #define CONBKSP        106
  97. #define CONBKSC        107
  98. #define CONRETR        108
  99. #define CONWIND        109
  100. #define CONSEG        110
  101. #define CONMTU        111
  102. #define CONNS        112
  103. #define CONTO        113
  104. #define CONCRMAP    114
  105. #define CONDUP      115
  106. #define CONWRAP     116
  107. #define CONWIDE     117
  108. #define CONFONT     118
  109. #define CONFSIZE    119
  110. #define CONNF        120
  111. #define CONNB         121
  112. #define CONBF         122
  113. #define CONBB         123
  114. #define CONUF         124
  115. #define CONUB         125
  116. #define CONRF         126
  117. #define CONRB         127
  118. #define CONCLMODE     128
  119. #define CONPORT     129
  120. #define CONFTPBAK   130
  121. #define CONDEBUGCONSOLE 131
  122. #define CONMAPOUTPUT    132
  123.  
  124. #define NUMSPECS 132    /* last CON option for a machine specific option */
  125.  
  126. /*
  127. *  above this line are per machine entries, below are configuration entries
  128. */
  129. #define CONNDOM     (NUMSPECS+1)
  130. #define CONMASK     (NUMSPECS+2)
  131. #define CONMYIP     (NUMSPECS+3)
  132. #define CONHPF      (NUMSPECS+4)
  133. #define CONPSF      (NUMSPECS+5)
  134. #define CONTEKF     (NUMSPECS+6)
  135. #define CONME       (NUMSPECS+7)
  136. #define CONCCOL     (NUMSPECS+8)
  137. #define CONHW       (NUMSPECS+9)
  138. #define CONADDR     (NUMSPECS+10)
  139. #define CONIOA      (NUMSPECS+11)
  140. #define CONDEF      (NUMSPECS+12)
  141. #define CONINT      (NUMSPECS+13)
  142. #define CONBIOS     (NUMSPECS+14)
  143. #define CONTEK      (NUMSPECS+15)
  144. #define CONVIDEO    (NUMSPECS+16)
  145. #define CONFTP      (NUMSPECS+17)
  146. #define CONRCP      (NUMSPECS+18)
  147. #define CONPASS     (NUMSPECS+19)
  148. #define CONCAP      (NUMSPECS+20)
  149. #define CONTTYPE    (NUMSPECS+21)
  150. #define CONNSTYPE   (NUMSPECS+22)
  151. #define CONFROM     (NUMSPECS+23)
  152. #define CONARPTO    (NUMSPECS+24)
  153. #define CONZONE     (NUMSPECS+25)
  154. #define CONDOMTO    (NUMSPECS+26)
  155. #define CONKBFILE   (NUMSPECS+27)
  156. #define CONWIRE     (NUMSPECS+28)
  157. #define CONCURSORTOP    (NUMSPECS+29)
  158. #define CONCURSORBOTTOM (NUMSPECS+30)
  159. #define CONWINDOWGOAWAY (NUMSPECS+31)
  160. #define CONAUTOSCROLL   (NUMSPECS+32)
  161. #define CONCLOCK        (NUMSPECS+33)
  162. #define CONBROADCAST    (NUMSPECS+34)
  163. #define CONOUTPUTMAP    (NUMSPECS+35)
  164. #define CONBEEP         (NUMSPECS+36)
  165. #define CONSERVICES     (NUMSPECS+37)
  166. #define CONFTPWRT          (NUMSPECS+38)
  167.  
  168. #ifndef CONFIG_MASTER
  169. extern
  170. #endif
  171. char *Skeyw[]
  172. #ifdef CONFIG_MASTER
  173.     ={
  174.         "",    
  175.         "name",                /* name of session */
  176.         "host",                /* name of host */
  177.         "hostip",            /* IP number */
  178.         "gateway",            /* gateway level */
  179.         "color",            /* color code  ==5== */
  180.         "erase",            /* value to use for backspace */
  181.         "scrollback",        /* how many lines to backscroll */
  182.         "retrans",            /* initial retrans time */
  183.         "rwin",                /* window to allow for this host */
  184.         "maxseg",            /* maximum transfer size(in) ==10== */
  185.         "mtu",                /* transfer unit (out) */
  186.         "nameserver",        /* name server level */
  187.         "contime",            /* timeout for opening connection */
  188.         "crmap",            /* map for Berkeley 4.3 compatibility */
  189.         "duplex",            /* half duplex for IBM machines ==15==*/
  190.         "vtwrap",            /* should VT wrap? */
  191.         "vtwidth",            /* width of VT100 screen */
  192.         "font",                /* font to use, when given a choice */
  193.         "fsize",            /* font size, in points */
  194.         "nfcolor",            /* normal foreground color ==20==*/
  195.         "nbcolor",            /* normal background color */
  196.         "bfcolor",            /* blink foreground color */
  197.         "bbcolor",            /* blink background color */
  198.         "ufcolor",            /* underline foreground color */
  199.         "ubcolor",            /* underline background color ==25==*/
  200.         "rfcolor",            /* reverse foreground color */
  201.         "rbcolor",            /* reverse background color */
  202.         "clearsave",        /* clear screen saves lines */
  203.         "port",                /* TCP port to go for */
  204.         "ftpoptions",       /* Options for ftp command line ==30==*/
  205.         "consoledebug",     /* Debugging options for connections */
  206.         "outputmap",        /* Flag for output mapping on a machine basis */
  207. /*
  208. *  following are one-time entries, above are part of the data structure
  209. */
  210.         "domainretry",      /* # of retries */
  211.         "netmask",            /* subnetting mask */
  212.         "myip",             /* local machine's IP # ==35==*/
  213.         "hpfile",           /* HPGL output file */
  214.         "psfile",           /* postscript output file */
  215.         "tekfile",          /* tektronix output file */
  216.         "myname",            /* identifying info */
  217.         "concolor",         /* console colors ==40==*/
  218.         "hardware",         /* network hardware */
  219.         "address",          /* Address of hardware */
  220.         "ioaddr",            /* ioaddress of hardware */
  221.         "domain",            /* default domain for lookup */
  222.         "interrupt",        /* interrupt request 3 or 5 ==45==*/
  223.         "bios",             /* use BIOS screen */
  224.         "tek",              /* tektronix graphics */
  225.         "video",            /* type of video hardware */
  226.         "ftp",                /* enable ftp? */
  227.         "rcp",              /* enable rcp? ==50==*/
  228.         "passfile",         /* password file name */
  229.         "capfile",          /* capture file name */
  230.         "termtype",            /* terminal type */
  231.         "nameservertype",    /* nameserver type */
  232.         "copyfrom",         /* copy from another machine ==55==*/
  233.         "arptime",          /* time-out for ARPs */
  234.         "zone",             /* NBP zone for Macs */
  235.         "domaintime",        /* time-out for DOMAIN */
  236.         "keyfile",            /* file for keyboard map */
  237.         "wire",             /* Thin or thick ether? Needed for 3c503 ==60==*/
  238.         "cursortop",        /* Starting line for the cursor */
  239.         "cursorbottom",     /* Ending line for the cursor */
  240.         "windowgoaway",        /* Whether to wait for a keypress after a window closes, or not */
  241.         "autoscroll",        /* Do we automatically scroll in scrollback */
  242.         "clock",            /* Display the clock? ==65==*/
  243.         "broadcast",        /* IP broadcast address */
  244.         "outputfile",       /* File for the output mapping definition */
  245.         "beep",             /* musical note display */
  246.         "services",            /* specify path to services file */
  247.         "ftpwrt",     /* allow write access to incoming connections ==70==*/
  248.         ""
  249.     }
  250. #endif
  251.     ;
  252.  
  253. #ifndef CONFIG_MASTER
  254. extern
  255. #endif
  256. struct machinfo *Smachlist,*Smptr;
  257.  
  258. #ifndef CONFIG_MASTER
  259. extern
  260. #endif
  261. struct machinfo *Sns
  262. #ifdef CONFIG_MASTER
  263. =NULL
  264. #endif
  265. ;
  266.  
  267. #ifndef NET14
  268. #ifndef CONFIG_MASTER
  269. extern
  270. #endif
  271. int default_mapoutput
  272. #ifdef CONFIG_MASTER
  273. =0
  274. #endif
  275. ;
  276. #endif
  277.  
  278. #ifndef CONFIG_MASTER
  279. extern
  280. #endif
  281. unsigned char *Smachfile
  282. #ifdef CONFIG_MASTER
  283. ={"config.tel"}
  284. #endif
  285. ,
  286. #ifdef OLD_WAY
  287.     *Smachpath
  288. #ifdef CONFIG_MASTER
  289. ={""}
  290. #endif
  291. ,
  292. #endif
  293.     Sflags[NUMSPECS-95],    /* which parms we have or have not */
  294.     *Sspace;
  295.  
  296. #ifndef CONFIG_MASTER
  297. extern
  298. #endif
  299. int mno
  300. #ifdef CONFIG_MASTER
  301. =0
  302. #endif
  303. ,                  /* how many machines in host file */
  304. #ifndef NET14
  305.     beep_notify
  306. #ifdef CONFIG_MASTER
  307. =1
  308. #endif
  309. ,                           /* whether to beep when text is received on a non-visible screen */
  310. #endif
  311.     lineno,                 /* line number in hosts file */
  312.     position,               /* position for scanning string */
  313.     constate,               /* state for config file parser */
  314.     inquote;                /* flag, inside quotes now */
  315.  
  316. #endif  /* confile.h */
  317.  
  318.