/*
 *------------------------------------------------------------------
 *
 * $Source: /mit/cgw/conf/sewage/RCS/chcnf.sewage.c,v $
 * $Revision: 1.6 $
 * $Date: 90/02/06 18:40:39 $
 * $State: Exp $
 * $Author: jon $
 * $Locker: jon $
 *
 * $Log:	chcnf.sewage.c,v $
 * Revision 1.6  90/02/06  18:40:39  jon
 * got host/net mixed up
 * 
 * Revision 1.5  90/02/06  18:37:36  jon
 * fix 2nd ether
 * 
 * Revision 1.4  90/02/06  18:29:19  jon
 * add 2nd ether
 * 
 * Revision 1.3  88/06/23  16:36:32  jon
 * Bump the cost of our chaos routes so we only wind up using sewage if
 * we can't go through 38 ...
 * 
 * Revision 1.2  88/03/25  19:25:01  jon
 * Ops, make that 012 not 011
 * 
 * Revision 1.1  88/03/25  14:47:05  jon
 * Initial revision
 * 
 *------------------------------------------------------------------
 */

#ifndef lint
static char *rcsid_chcnf_c = "$Header: /mit/cgw/conf/sewage/RCS/chcnf.sewage.c,v 1.6 90/02/06 18:40:39 jon Exp Locker: jon $";
#endif	lint

/* Hand initialized network interface CHAOS 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/ch/ch.h>

#include	"netcnf.h"


/* Network interface address tables. These define the relationship
 * between network interfaces and their CHAOS addresses. The table comes
 * in two parts; one is a table indexed by interface number that
 * lists a chain of CHAOS 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 CHAOS address.
 */

#define	NCHADDR 4

chia	chiatbl[NCHADDR] =

{
  /* chaos 104/10 */
  { { 8, 68}, NULL, 19 },   /* VII Ring Spine (18.68.0.8) */
  /* chaos  12/7 */
  { { 7, 10}, NULL, 19 },   /* VII LCS (18.10.0.7) */
  /* chaos  32/211 */
  { { 137, 26}, NULL, 19 }, /* Ethernet (18.26.0.137) */
  { { 02, 064}, NULL, 19 }, /* Ethernet (18.52.0.2) */
};

chia	*chiatlst[NNETS] =

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


/* CHAOS fixed route tables. Each fixed route consists of a target net
 * number, the number of hops the gateway given for that net is away
 * from the destination (including one hop for the intevening net,
 * and the gateway's address). Note that the gateway must be on a
 * net that this gateway has an interface on.
 */

#define	NCHFRE	0

chfre	chfretbl[2/*NCHFRE*/];	/* BD compiler dont allow zero length arrays
= {
  }; */


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

unsb	nchaddr =	NCHADDR;	/* Number of CHAOS net addresses */
unsb	nchfre	=	NCHFRE;		/* Number of CHAOS fixed routes */
