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

/* Version for MITGW (arpa gateway) */

/*
 *------------------------------------------------------------------
 *
 * $Source: /afs/athena.mit.edu/mit/cgw/conf/mitgw/RCS/inga.mitgw.c,v $
 * $Revision: 1.18 $
 * $Date: 89/05/16 23:06:33 $
 * $State: Exp $
 * $Author: jis $
 * $Locker:  $
 *
 * $Log:	inga.mitgw.c,v $
 * Revision 1.18  89/05/16  23:06:33  jis
 * Add default route to sewage (NEARnet cutover)
 * 
 * Revision 1.17  89/05/03  20:10:47  jis
 * Add Thinking Machines Inc.
 * 
 * Revision 1.16  89/03/06  00:36:31  jon
 * add cayman
 * 
 * Revision 1.15  89/02/22  22:42:01  jon
 * add static routes for two old harvd nets
 * 
 * Revision 1.14  89/02/18  16:11:05  jon
 * add state routes for bu and nearnet backbone, so we can egp for them
 * 
 * Revision 1.13  89/01/28  18:07:55  jon
 * remove static route to 18.26
 * 
 * Revision 1.12  89/01/10  17:27:07  jon
 * static route to harvard via sewage ... should use rip and routing restrict
 * for this ...
 * 
 * Revision 1.11  88/12/16  17:00:16  jon
 * add 18.31 pointing at sludge
 * 
 * Revision 1.10  88/06/24  23:27:47  jon
 * Add route for 18.43 (per Mike Patton's request)
 * .,
 * 
 * Revision 1.9  88/06/08  23:49:07  jon
 * Remove default route, add static route for apollo.
 * 
 * Revision 1.8  88/05/05  00:07:10  jon
 * Add 128.168 (Gold Hill) pointing at sludge.
 * 
 * Revision 1.7  88/04/14  17:57:44  jon
 * Point 128.185 at gross per JNC's request
 * 
 * Revision 1.6  88/03/29  20:22:10  jon
 * Route ftpnet through sludge.
 * 
 * Revision 1.5  88/01/22  15:32:36  jon
 * Remove static route to 18.136 to break gw <-> sewage packet loop
 * 
 * Revision 1.4  87/12/11  16:37:03  jon
 * Adds rcs headers
 * 
 * 
 *------------------------------------------------------------------
 */

#ifndef lint
static char *rcsid_inga_c = "$Header: inga.mitgw.c,v 1.18 89/05/16 23:06:33 jis Exp $";
#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"

#ifndef NULL
#define NULL 0
#endif

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

dmitbr
dmittiu
dmitgw2
dmitsw
dmitmoss
dmitsl
dgrime
dgrossl
byte bitbuc[4] = { 18, 10, 0, 253 };
byte protgw[4] = { 18, 10, 0, 10 };

/* Allocate and init nets and subnets. */
byte pc1[4] = { 18, 9, 0, 0 };
byte eth3[4] = { 18, 2, 0, 0 };
byte lcs1[4] = { 18, 26, 0, 0 };
byte lcs2[4] = { 18, 30, 0, 0 };
byte lcs3[4] = { 18, 48, 0, 0 };
byte lcs4[4] = { 18, 41, 0, 0 };
byte ailab[4] = { 128, 52, 0, 0 };
byte symnet[4] = { 192, 10, 41, 0 };
byte symnet1[4] = { 128, 81, 0, 0 };
byte chipnet[4] = { 18, 20, 0, 0 };
byte e40[4] = { 18, 72, 0, 0 };
byte prot0[4] = { 128, 185, 0, 0 };
byte prot1[4] = { 18, 122, 0, 0 };
byte prot2[4] = { 18, 123, 0, 0 };
byte prot3[4] = { 18, 124, 0, 0 };
byte prot4[4] = { 18, 125, 0, 0 };
byte prot5[4] = { 18, 126, 0, 0 };
byte prot6[4] = { 18, 127, 0, 0 };
byte prot7[4] = { 18, 128, 0, 0 };
byte prot8[4] = { 18, 129, 0, 0 };
byte prot9[4] = { 18, 130, 0, 0 };
byte prot10[4] = { 18, 131, 0, 0 };
byte prot11[4] = { 18, 132, 0, 0 };
byte prot12[4] = { 18, 133, 0, 0 };
byte prot13[4] = { 18, 134, 0, 0 };
byte prot14[4] = { 18, 135, 0, 0 };
byte jvnc[4] = { 128, 121, 0, 0 };
byte princ[4] = { 128, 112, 0, 0 };
byte dspn[4] = { 18, 27, 0, 0 };
byte ath1[4] = { 18, 58, 0, 0 };
byte ath2[4] = { 18, 68, 0, 0 };
byte ath3[4] = { 18, 70, 0, 0 };
byte ath4[4] = { 18, 71, 0, 0 };
byte ath5[4] = { 18, 73, 0, 0 };
byte ath6[4] = { 18, 74, 0, 0 };
byte ath7[4] = { 18, 75, 0, 0 };
byte ath8[4] = { 18, 76, 0, 0 };
byte ath9[4] = { 18, 77, 0, 0 };
byte ath10[4] = { 18, 78, 0, 0 };
byte ath11[4] = { 18, 79, 0, 0 };
byte ath12[4] = { 18, 80, 0, 0 };
byte ath13[4] = { 18, 81, 0, 0 };
byte ath14[4] = { 18, 82, 0, 0 };
byte ath15[4] = { 18, 83, 0, 0 };
byte ath16[4] = { 18, 84, 0, 0 };
byte ath17[4] = { 18, 85, 0, 0 };
byte ath18[4] = { 18, 86, 0, 0 };
byte ath19[4] = { 18, 87, 0, 0 };
byte ath20[4] = { 18, 88, 0, 0 };
byte ath21[4] = { 18, 89, 0, 0 };
byte ath22[4] = { 18, 90, 0, 0 };
byte ath23[4] = { 18, 91, 0, 0 };
byte ath24[4] = { 18, 92, 0, 0 };
byte gab1[4] = { 18, 105, 0, 0 };
byte ath25[4] = { 18, 136, 0, 0 };
byte ath26[4] = { 18, 137, 0, 0 };
byte ath27[4] = { 18, 138, 0, 0 };
byte ath28[4] = { 18, 139, 0, 0 };
byte ath29[4] = { 18, 140, 0, 0 };
byte pikan[4] = { 18, 141, 0, 0 };
byte zbtn[4] = { 18, 143, 0, 0};
byte ath30[4] = { 18, 62, 0, 0 };
byte ath31[4] = { 18, 63, 0, 0 };
byte ftpnet[4] = {128, 127, 0, 0};
byte goldhillnet[4] = {128, 168, 0, 0};
byte apollonet[4] = {129, 248, 0, 0};
byte ai2net[4] = {18, 43, 0, 0};
byte lcsslipnet[4] = {18, 31, 0, 0};
byte harvard[4] = {128, 103, 0, 0};
byte bunet[4] = {128, 197, 0, 0};
byte nearnet[4] = {131, 192, 0, 0};
byte think[4] = { 131, 239, 0, 0};
byte harv2[4] = {192, 31, 246, 0};
byte harv3[4] = {192, 5, 66, 0};
byte harv4[4] = {192, 5, 90, 0};
byte harv5[4] = {192, 5, 89, 0};
byte think1[4] = { 192, 5, 104, 0};
byte cayman[4] = {192, 31, 222, 0};

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

/* Static routes */
struct ipsrte iprte_sinit[] = {
    pc1, mittiu, 5, 0,
    lcs2, mitmoss, 1, 0,
    lcs3, mitmoss, 1, 0,
    lcs4, mitmoss, 2, 0,
    gab1, mitmoss, 1, 0,
    dspn, mitsewage, 1, 0,
    eth3, mitbr, 2, 0,
    ailab, grossl, 1, 0,
    symnet, grossl, 1, 0,
    symnet1, grossl, 1, 0,
    pikan, mitsewage, 1, 0,
    zbtn, mitsewage, 1, 0,
    prot1, grime, 1, 0,
    prot2, grime, 1, 0,
    prot3, grime, 1, 0,
    prot4, grime, 1, 0,
    prot5, grime, 1, 0,
    prot6, grime, 1, 0,
    prot7, grime, 1, 0,
    prot8, grime, 1, 0,
    prot9, grime, 1, 0,
    prot10, grime, 1, 0,
    prot11, grime, 1, 0,
    prot12, grime, 1, 0,
    prot13, grime, 1, 0,
    prot14, grime, 1, 0,
    e40, mitsewage, 4, 0,
/*    jvnc, mitsewage, 4, 0,  */
/*    princ, mitsewage, 4, 0, */
    ath1, mitsewage, 4, 0,
    ath2, mitsewage, 4, 0,
    ath3, mitsewage, 4, 0,
    ath4, mitsewage, 4, 0,
    ath5, mitsewage, 4, 0,
    ath6, mitsewage, 4, 0,
    ath7, mitsewage, 4, 0,
    ath8, mitsewage, 4, 0,
    ath9, mitsewage, 4, 0,
    ath10, mitsewage, 4, 0,
    ath11, mitsewage, 4, 0,
    ath12, mitsewage, 4, 0,
    ath13, mitsewage, 4, 0,
    ath14, mitsewage, 4, 0,
    ath15, mitsewage, 4, 0,
    ath16, mitsewage, 4, 0,
    ath17, mitsewage, 4, 0,
    ath18, mitsewage, 4, 0,
    ath19, mitsewage, 4, 0,
    ath20, mitsewage, 4, 0,
    ath21, mitsewage, 4, 0,
    ath22, mitsewage, 4, 0,
    ath23, mitsewage, 4, 0,
    ath24, mitsewage, 4, 0,
/* god knows what this used to be, now it is causing packet loops between
   gw and sewage ... */
/*    ath25, mitsewage, 4, 0, */
    ath26, mitsewage, 4, 0,
    ath27, mitsewage, 4, 0,
    ath28, mitsewage, 4, 0,
    ath29, mitsewage, 4, 0,
    ath30, mitsewage, 4, 0,
    ath31, mitsewage, 4, 0,
    chipnet, mitsewage, 4, 0,
/*  prot0, protgw, 3, 0, */
/*  per JNC request 4/14/88 */
    prot0, grossl, 3, 0,
    ftpnet, mitsludge, 1, 0,
    goldhillnet, mitsludge, 1, 0,
    apollonet, mitsewage, 4, 0,
    ai2net, mitsewage, 2, 0,
    lcsslipnet, mitsludge, 1, 0,
    harvard, mitsewage, 3, 0,
    bunet, mitsewage, 3, 0,
    nearnet, mitsewage, 3, 0,
    harv2, mitsewage, 3, 0,
    harv3, mitsewage, 3, 0,
    cayman, mitsludge, 1, 0,
    think, mitsewage, 1, 0,
    think1, mitsewage, 1, 0,
    0, 0, 0, 0,
};
