/* Copyright 1986 by the Massachusetts Institute of Technology */


/* Hand initialized network interface IN address tables. Also various
 * other externals that can be set here.
 */

#include <types.h>
#include <sys.h>
#include <gw/src/const.h>
#include <gw/src/defs.h>
#include <gw/src/net.h>
#include <gw/in/in.h>
#include <gw/in/egp.h>

#include "netcnf.h"


/* Network interface address tables. These define the relationship
 * between network interfaces and their IN addresses. The table comes
 * in two parts; one is a table indexed by interface number that
 * lists a chain of IN addresses for that interface number, the first
 * being the primary, and the second is the interface address chains.
 * If an entry in the first table is NULL, that net has no IN address.
 */

#define	NINADDR	4

inia	iniatbl[NINADDR] =

{ { { 18, 10, 0, 6 }, NULL, { 255, 255, 0, 0 }, IF_RIP },
  { { 18, 26, 0, 134 }, NULL, { 255, 255, 0, 0 }, IF_RIP },
  { { 128, 127, 25, 101 }, NULL, { 0, 0, 0, 0 }, IF_RIP_IGN },
  { { 128, 168, 2, 2 }, NULL, { 0, 0, 0, 0 }, IF_RIP_IGN },
};

inia	*iniatlst[NNETS] =

{	&iniatbl[0],
	&iniatbl[1],
	&iniatbl[2],
	&iniatbl[3],
};

#ifdef do_egp
/*
 * EGP Configuration info.
 */
unsw mysystem = 3;

#define NNEIGH	2
unsw nneigh = NNEIGH;
egpng	egpngh[NNEIGH];
struct egpnn	egpnn[NNEIGH] =	{
    { { 10, 2, 0, 25 }, COREGW },
    { { 10, 3, 0, 27 }, COREGW },
};

/* Net to advertise as 0 hops. */
struct egpnet egphop0 = { 18, 0, 0, 0 };
/* struct egpnet egphop0 = { 128, 31, 0, 0 }; */

/* Nets from which MIT is 1 hop */
#define NHOP1	2
unsw nhop1 = NHOP1;
struct egpnet	egphop1[NHOP1] = {
    128, 121, 0, 0,
    128, 112, 0, 0,
};
#endif /* do_egp */

/* Various externals that can be set at compile time from info in
 * this file. Do not touch!
 */

unsb	ninaddr = NINADDR;		/* Number of IN net addresses */
unsw	inovfin[NNETS];			/* IP queue overflow discards */
