/* Copyright 1984 by the Massachusetts Institute of Technology */
/* This file contains IN routing table initialization.
 */

/* Version for MIT Telecom spine gateways (special version for E40-03GW) */

#include	<types.h>
#include	<sys.h>
#include	<gw/src/defs.h>
#include	<gw/src/net.h>
#include	<gw/in/in.h>
/* #include	<gw/in/inrte.h>*/
#include        "inrte.h"

#include	"../inga.h"
#include	"../mit-inga.h"

/* Allocate and init storage for gateway names using defs in inga.h. */
dmitswsp

/* Allocate and init nets and subnets. */
byte n1871[4] = {18, 71, 0, 0};

byte delwin[4] = {18, 72, 0, 241};
byte foohost[4] = {18, 72, 4, 1};

byte subnet_18[4] = {255, 255, 0, 0};
byte no_subnet_mask[4] = {0, 0, 0, 0};

byte b11gw[4] = {18, 80, 0, 1};
byte e40_03gw[4] = {18, 72, 0, 1};
byte ciscogw[4] = {18, 72, 2, 2};

/* Default Gateway */
/* byte *defgw = { e40_03gw }; */
#ifndef NULL
#define NULL 0
#endif

/* Allocate and init nets and subnets. */
byte jvnc[4] = { 128, 121, 0, 0 };
byte harv1[4] = { 192, 5, 90, 0 };
byte harv2[4] = { 192, 5, 89, 0 };
byte harv3[4] = { 128, 103, 0, 0 };
byte mulnet[4] = { 18, 140, 0, 0 };
byte brown[4] = { 128, 148, 0, 0 };
byte merit[4] = { 35, 0, 0, 0 };
byte nsf1[4] = { 128, 112, 0, 0 };
byte nsf2[4] = { 192, 12, 216, 0 };
byte nsf3[4] = { 128, 8, 0, 0 };
byte nsf4[4] = { 128, 104, 0, 0 };
byte nsf5[4] = { 192, 5, 8, 0 };
byte nsf6[4] = { 128, 145, 0, 0 };
byte nsf7[4] = { 128, 113, 0, 0 };
byte nsf8[4] = { 128, 138, 0, 0 };
byte nsf9[4] = { 128, 122, 0, 0 };
byte nsf10[4] = { 192, 12, 82, 0 };
byte nsf11[4] = { 192, 5, 146, 0 };
byte nsf12[4] = { 192, 12, 211, 0 };
byte nsf13[4] = { 192, 12, 91, 0 };
byte nsf14[4] = { 128, 59, 0, 0 };
byte nsf15[4] = { 192, 12, 27, 0 };
byte nsf16[4] = { 128, 91, 0, 0 };
byte nsf17[4] = { 128, 196, 0, 0 };
byte nsf18[4] = { 192, 26, 20, 0 };
byte nsf19[4] = { 192, 26, 148, 0 };
byte nsf20[4] = { 128, 84, 0, 0 };
byte nsf21[4] = { 192, 5, 156, 0 };
byte nsf22[4] = { 128, 116, 0, 0 };
byte nsf23[4] = { 192, 12, 220, 0 };
byte nsf24[4] = { 192, 12, 69, 0 };
byte nsf25[4] = { 192, 12, 221, 0 };
byte nsf26[4] = { 128, 117, 0, 0 };
byte nsf27[4] = { 128, 5, 0, 0 };
byte nsf28[4] = { 128, 6, 0, 0 };
byte nsf29[4] = { 128, 182, 0, 0 };
byte nsf30[4] = { 128, 118, 0, 0 };
byte nsf31[4] = { 128, 174, 0, 0 };
byte nsf32[4] = { 128, 151, 0, 0 };
byte nsf33[4] = { 192, 12, 15, 0 };
byte nsf34[4] = { 192, 12, 103, 0 };
byte nsf35[4] = { 192, 12, 207, 0 };
byte nsf36[4] = { 128, 135, 0, 0 };
byte nsf37[4] = { 128, 2, 0, 0 };
byte nsf38[4] = { 128, 230, 0, 0 };
byte bu[4] = {128, 197, 0, 0};
byte arpa[4] = { 10, 0, 0, 0 };	/* ARPANet */
byte milnet[4] = { 26, 0, 0, 0 }; /* MILNET */
byte wesleyannet[4] = { 129, 133, 0, 0};
byte inonet[4] = {128, 160, 0, 0};
byte goddard[4] = {128, 183, 0, 0};
byte nyserfoo[4] = {130, 117, 0, 0};
byte umass[4] = {128, 119, 0, 0};
/* Interop '88 network */
byte shownet[4] = {130, 128, 0, 0};

byte whoigw[4] = { 18, 88, 0, 113 };

/* Allocate and init nets and subnets. */
byte whoinet[4] = { 128, 128, 0, 0 };
byte net128160[4] = { 128, 160, 0, 0 };
byte nrlnet[4] = { 128, 60, 0, 0 };

ipr_res_entry_init jvnc_restrictions[] = {
#ifdef ndef
  wesleyannet, no_subnet_mask, 4, F_DONT_LISTEN | F_RES_RIP,
  inonet, no_subnet_mask, 4, F_DONT_LISTEN | F_RES_RIP,
  goddard, no_subnet_mask, 4, F_DONT_LISTEN | F_RES_RIP,
  umass, no_subnet_mask, 4, F_DONT_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
#endif
  whoinet, no_subnet_mask, 8, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
  nsf22, no_subnet_mask, 8, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
  nsf26, no_subnet_mask, 8, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
  nrlnet, no_subnet_mask, 8, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
  net128160, no_subnet_mask, 8, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
  0, 0, 9, F_SET_DEFAULT_METRIC,
  0, 0, 0, 0,
};

#ifndef NULL
#define NULL 0
#endif

ipr_res_entry_init *ipr_init_restrictions[] = {
  NULL,
/*  &jvnc_restrictions[0], */
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL,
  NULL, /* should be enough */
};

byte *defgw = (byte *) NULL;

/* Static routes */
struct ipsrte iprte_sinit[] = {
    foohost, delwin, 1, 0,
    0, 0, 0, 0,
};


