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

/* Version for MIT Telecom spine gateways */

/*
 *------------------------------------------------------------------
 *
 * $Source: /mit/cgw/conf/spine/RCS/inga.sloangw.c,v $
 * $Revision: 1.3 $
 * $Date: 90/03/31 13:50:50 $
 * $State: Exp $
 * $Author: jis $
 * $Locker: jis $
 *
 * $Log:	inga.sloangw.c,v $
 * Revision 1.3  90/03/31  13:50:50  jis
 * Fix duplicate routes in static route table.
 *  
 *
 *------------------------------------------------------------------
 */

#ifndef lint
static char *rcsid_inga_sloangw_c = "$Header: /mit/cgw/conf/spine/RCS/inga.sloangw.c,v 1.3 90/03/31 13:50:50 jis Exp Locker: jis $";
#endif	lint

#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"

/* Allocate and init nets and subnets. */
byte pc1[4] = { 18, 9, 0, 0 };	/* Serial line PC net */
byte eth3[4] = { 18, 2, 0, 0 };	/* 3 Mbit Ethernet */
byte sub26[4] = { 18, 26, 0, 0 };
byte sub30[4] = { 18, 30, 0, 0 };
byte sub48[4] = { 18, 48, 0, 0 };
byte p1[4] = { 18, PRSL, 0, 0 };
byte p2[4] = { 18, PRRING, 0, 0 };
byte p3[4] = { 18, PR3, 0, 0 };
byte p4[4] = { 18, PR4, 0, 0 };
byte p5[4] = { 18, PR5, 0, 0 };
byte ainet[4] = { 128, 52, 0, 0 };
byte arpa[4] = { 10, 0, 0, 0 };	/* ARPANet */
byte milnet[4] = { 26, 0, 0, 0 }; /* MILNET */
byte lcs4[4] = { 18, 41, 0, 0 };
byte slipnet[4] = {18, 31, 0, 0};
byte ai2net[4] = {18, 43, 0, 0};

/* Allocate and init storage for gateway names using defs in inga.h. */
dihtfp
byte sewage[4] = { 18, 86, 5, 1 };

/* Default Gateway */
byte *defgw = { ihtfpgw };

/* Static routes */
struct ipsrte iprte_sinit[] = {
    pc1, sewage, 4, 0,
    eth3, sewage, 4, 0,
    p1, sewage, 4, 0,
    p2, sewage, 4, 0,
    p3, sewage, 4, 0,
    p4, sewage, 4, 0,
    p5, sewage, 4, 0,
    sub26, sewage, 4, 0,
    sub30, sewage, 4, 0,
    sub48, sewage, 4, 0,
    ainet, sewage, 4, 0,
    ai2net, sewage, 4, 0,
    0, 0, 0, 0,
};
