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


/* Per site static data. This includes hand initialized network
 * interface tables. By default, this also allocates the whole table.
 * Also, node name and various other stuff.
 */

/*
 *------------------------------------------------------------------
 *
 * $Source: /u1/jis/gw/cgw/conf/spine/RCS/b54gw.c,v $
 * $Revision: 1.2 $
 * $Date: 89/03/08 21:47:11 $
 * $State: Exp $
 * $Author: jon $
 * $Locker: jon $
 *
 * $Log:	b54gw.c,v $
 * Revision 1.2  89/03/08  21:47:11  jon
 * add routing restrictions (whoigw is moving to 18.83)
 * 
 * Revision 1.1  88/09/03  22:43:31  jon
 * Initial revision
 * 
 * Revision 1.2  88/05/31  19:57:18  jon
 * Use include file to get default flag values.
 * 
 *------------------------------------------------------------------
 */

#ifndef lint
static char *rcsid_b24gw_c = "$Header: b54gw.c,v 1.2 89/03/08 21:47:11 jon Locked $";
#endif	lint

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

#include	"netcnf.h"

#include	<gw/nets/vii.h>
#include	<gw/nets/ether.h>

/* Node name and type */

char	name[]	= "b54gw";
int	mach_type = M_uVAX2;

#define DEFINED_ROUTING_RESTRICTIONS

#include "default_flag_values.h"

/* Actual network configuration table */

ext	vii_prinit(), vii_in();
ext word	vii_out();
ext	e10_prinit(), e10_in();
ext word	e10_out();
ext dct viidct[], qnadct[];

net	nets[NNETS] =	/* Make it explicit to prevent errors */
{ { NULL, vii_prinit, vii_out, NULL, vii_in, NULL, NULL, /* VII Ring Net */
    4, 4, 3, 0, VIIMAX, sizeof(struct viipkt), 0,
    viidct, &viidct[0], &viidct[1], T_VII, C_BRD },

  { NULL, e10_prinit, e10_out, NULL, e10_in, NULL, NULL, /* 10Mbit Ethernet */
    10, 4, 0, 0, EMAX, sizeof(e10pkt) + 4, 0,
    qnadct, &qnadct[0], &qnadct[1], T_E10, C_BRD },
};


/* Various per site externals that can be set at compile time.
 * Do not touch anything here!
 */

unsw	nnets = NNETS;			/* Number of networks */
net	*lstnet	= &nets[NNETS];		/* Pointer after last net */
