home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / kip / conf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-17  |  1.6 KB  |  64 lines

  1. /*
  2.  * Gateway configuration.
  3.  *
  4.  * For Kinetics, struct 'conf' is initialized via the fpr_state
  5.  * vector.  For a Seagate, this conf.h file is edited to fill the
  6.  * struct with initialized data.
  7.  *
  8.  * $Header: conf.h,v 4.1 88/11/01 19:47:48 sw0l Exp $
  9.  */
  10.  
  11.  
  12. #ifdef SEAGATE
  13.  
  14. #define IPDOT(a,b,c,d) ((a<<24)+(b<<16)+(c<<8)+d)
  15.  
  16. struct conf conf = {
  17.     IPDOT(36,9,0,240),    /* ipaddr */
  18.     IPDOT(36,9,0,9),    /* ipmaster */
  19.     IPDOT(36,9,0,1),    /* iproutedef */
  20.     { 0x08, 0x00, 0x89, 0xF0, 0x05, 0x30 },    /* etheraddr */
  21.     0x1234,            /* ready */
  22.     IPDOT(36,9,0,255),    /* ipbroad */
  23.     IPDOT(36,53,0,10),    /* ipname */
  24.     IPDOT(36,9,0,9),    /* ipdebug */
  25.     0,0,            /* ipsmask, ipsshift (currently unused) */
  26.     0,            /* flags */
  27.     0x0001,            /* ipstatic */
  28.     0x0003,            /* ipdynamic */
  29.     0x0051,            /* atneta */
  30.     0x0000,            /* atnete */
  31.     "TWILIGHT"        /* zone */
  32. };
  33.  
  34. #define    ifie_proto ifie
  35. #define    ifab_proto ifab
  36.  
  37. #endif SEAGATE
  38.  
  39. extern int ieoutput(), aboutput(), iematch();
  40.  
  41. struct ifnet ifie_proto = {
  42.     "ie", 0,             /* intel/interlan, unit 0 */
  43.      0, 0x800,            /* x.x.x.x, type 0x800 */
  44.     6, 1,                /* ether addr is 6 bytes, format 1 */
  45.     ieoutput, iematch,    /* output, match routines */
  46.     IF_IPUDP        /* output is udp */
  47. };
  48.  
  49. struct ifnet ifab_proto = {
  50.     "ab", 0,            /* AppleTalk, unit 0 */
  51.     0, 0x800,            /* x.x.x.x, type 0x800 */
  52.     4, 3,                /* AddrBlock 4 bytes, format 3 */
  53.     aboutput, /*abmatch*/ 0,    /* output, match routines */
  54.     IF_ALAP|IF_APPLETYPE        /* flags */
  55. };
  56.  
  57. struct ifnet ifet_proto = {
  58.     "et", 0,             /* ethertalk on ethernet */
  59.      0, 0x809b,            /* x.x.x.x, type 0x809b */
  60.     6, 1,                /* ether addr is 6 bytes, format 1 */
  61.     ieoutput, /*etmatch*/0,
  62.     IF_APPLETYPE
  63. };
  64.