home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / lan / soss.arj / INCLUDE / CUSTOM.H < prev    next >
C/C++ Source or Header  |  1991-04-11  |  4KB  |  111 lines

  1. /* Copyright 1986 by Carnegie Mellon */
  2. /*  Copyright 1983,1984,1985 by the Massachusetts Institute of Technology  */
  3.  
  4. /*
  5. 3-29-86    added c_chirp{f,d,l,s} fields to allow control over the telnet chirp.
  6.                         <Drew D. Perkins>
  7.  */
  8.  
  9. #ifndef CUSTOM_H        /* DDP */
  10. #define CUSTOM_H    1    /* DDP */
  11.  
  12. /* Still 8 after all these years...
  13. */
  14.  
  15. #define LPKT        1
  16.  
  17. /* This file contains lots of customization info necessary to work with the
  18.     system. */
  19.  
  20. /* some random constants */
  21. #define    MAXNAMES    5    /* maximum number of name servers */
  22. #define    MAXTIMES    5    /* maximum number of time servers */
  23. #define    MNAMELEN    50    /* maximum user name length */
  24. #define    MPROGLEN    20    /* maximum program name length */
  25.  
  26. /* Custom structure version number */
  27. #define    CVERSION    8
  28.  
  29.  
  30. /* some constants */
  31. #define    SUBNET        0
  32. #define    GENERIC        1
  33.  
  34. /* how to figure out my local net address */
  35. #define    HARDWARE    0    /* use hardware address */
  36. #define    ETINTERNET    1    /* use my ip address */
  37. #define    ETUSER        2    /* use the user specified address */
  38.  
  39. /* ethernet address structure */
  40. struct etha {
  41.     char    e_ether[6];
  42.     };
  43.  
  44. /* The custom structure itself. */
  45.  
  46. struct custom {
  47.     char        c_dummy[18];    /* 18 bytes of padding */
  48. #define c_basemem c_pad
  49.     long        c_pad;        /* padding for old programs */
  50.     unsigned    c_iver;        /* internal version number */
  51.     long        c_ctime;    /* time of last customization */
  52.     long        c_cdate;    /* date of last customization */
  53.     unsigned    c_baud;        /* serial line speed */
  54.     unsigned    c_driver;    /* interface type */
  55.     unsigned    c_debug;    /* default debugging options */
  56.     int        c_tmoffset;    /* time zone offset in minutes */
  57.     char        c_tmlabel[4];    /* time zone label */
  58.     unsigned    c_1custom;    /* bits mean things for each program */
  59.     unsigned     c_route;    /* routing option */
  60.     unsigned    c_seletaddr;    /* how to choose my et addr */
  61.     struct    etha    c_myetaddr;    /* my ethernet address */
  62.     in_name        c_me;        /* skeletal my-internet-address */
  63.     in_name        c_log;        /* address of log server */
  64.     in_name        c_defgw;    /* address of default gateway */
  65.     in_name        c_cookie;    /* address of cookie server */
  66.     in_name        c_printer;    /* address of print server */
  67.     in_name        c_scribe;    /* address of scribe server */
  68.     unsigned    c_numtime;    /* number of time servers */
  69.     in_name        c_time[MAXTIMES];    /* local time server */
  70.     unsigned    c_numname;    /* # of name servers */
  71.     in_name        c_names[2];    /* and the name servers */
  72.     in_name        c_dm_servers[3];
  73.     char        c_user[MNAMELEN];    /* user name */
  74.     char        c_domain[30];    /* domain name: LCS.MIT.EDU */
  75.     unsigned    c_dm_numname;    /* number of domain name servers */
  76.     char        c_spare[38];
  77.     struct    etha    c_ether[3];    /* ip - ether address xlation cache */
  78.     in_name        c_ipname[3];
  79.     unsigned    c_intvec;    /* net interface interrupt number */
  80.     unsigned    c_tx_dma;    /* net interface xmit dma channel */
  81.     unsigned    c_base;        /* net interface CSR base address */
  82.     unsigned    c_telwin;    /* telnet window size */
  83.     unsigned    c_tellowwin;    /* telnet low window size */
  84.     unsigned    c_subnet_bits;    /* # of bits of subnet */
  85.     in_name        c_net_mask;    /* net & subnet address mask */
  86.     unsigned    c_rcv_dma;    /* net interface rcv dma channel */
  87.     unsigned    c_ip_radix;    /* print ip addrs in base 8 or 10 */
  88.     unsigned    c_chirpf;    /* DDP start count for chirp */
  89.     int        c_chirpd;    /* DDP delta for each chirp segment */
  90.     unsigned    c_chirpl;    /* DDP length of a chirp segment */
  91.     unsigned    c_chirps;    /* DDP number of chirp segments */
  92.     unsigned    c_vars[1];
  93.     unsigned    c_otheruser;    /* 1 if rvd active */
  94.     unsigned    c_num_nets;    /* number of interfaces */
  95.     char        c_rvd_base;    /* first rvd drive */
  96.     };
  97.  
  98. /* TELNET custom bits in c_1custom */
  99. #define    BSDEL    0x01    /* BS/DEL key setting */
  100. #define    WRAP    0x02    /* wrap-around */
  101. #define    NLSET    0x04    /* newline mode default */
  102. #define    FINGER_ON    0x08    /* finger server default */
  103. #define    SUPDUP_WRAP    0x10    /* supdup wrap default */
  104. #define    TN_TFTP_ASK    0x20    /* telnet tftp server asking default */
  105.  
  106. /* in multiple interface configurations, this will be the first custom
  107.     structure
  108. */
  109. extern struct custom custom;
  110. #endif                /* DDP */
  111.