/* 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	"../inga.h"
#include	"../mit-inga.h"

#ifndef NULL
#define NULL 0
#endif

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

byte b54apollonetgw[4] = {18, 83, 0, 110};
byte b54apollonet[4] = {18, 138, 0, 0};

byte *defgw = { w91gw };

/* Allocate and init nets and subnets. */
byte whoinet[4] = { 128, 128, 0, 0 };
byte nsf22[4] = { 128, 116, 0, 0 };
byte nsf26[4] = { 128, 117, 0, 0 };
byte net128160[4] = { 128, 160, 0, 0 };
byte nrlnet[4] = { 128, 60, 0, 0 };
byte nrl2net[4] = { 192, 43, 244, 0};
byte nrl3net[4] = {192, 52, 106, 0};

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

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

ipr_res_entry_init whoi_restrictions[] = {
    whoinet, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    nsf22, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    nsf26, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    nrlnet, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    net128160, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    nrl2net, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    nrl3net, no_subnet_mask, 3, F_LISTEN | F_DONT_ANNOUNCE | F_RES_RIP,
    0, 0, 0, 0
    };

ipr_res_entry_init *ipr_init_restrictions[] = {
  /* Spine (18.68) */
  NULL,
  /* B54 ethernet (18.83) */
  &whoi_restrictions[0],
};
