/* 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.
 */


#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        <gw/in/rvd.h>

#include	"netcnf.h"

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

/* Node name and type */

char	name[]	= "jon's testgw";
int	mach_type = M_uVAX2;

#define DEFINED_MSGFLG
#define DEFINED_INFLG
#define DEFINED_EGPFLG
#define DEFINED_NIPFLG
#define DEFINED_REBOOT
#define DEFINED_NODDT
#define DEFINED_TEST_GATEWAY_FLAG
#define DEFINED_ROUTING_RESTRICTIONS
#define DEFINED_DIRECT_ROUTE_RIP_METRIC
#define DEFINED_REDIRECT_FLAG

bitw msgflg = 0xffff;		/* General message flag */
bitf snmpflg = 0xffff;          /* SNMP message flag */
bitf inflg = 0xff7f;		/* Internet message flag */
bitf egpflg = 0x00;             /* EGP message flag (what else?) */
bitf nipflg = 0xffff;           /* NIP message flag (what else?) */
intf reboot = 0;		/* Don't enable DEQNA sanity timer */
/* intf reboot = 1;*/		/*  enable DEQNA sanity timer */
int noddt = 1;			/* If set, ddt doesn't go to cmd level */
bitf test_gateway_flag = TRUE;  /* are we a test gateway? you bet we are! */

int DIRECT_ROUTE_RIP_METRIC = 2;

byte static_nip_gateway_address[4] = {18, 72, 0, 1};
int use_static_nip_gateway = TRUE;

#ifndef FALSE
#define FALSE 0
#endif
int ip_send_redirects = FALSE;

#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[], dhidct[], dhodct[], dldct[], nulldct[];
ext	slip_prinit(), slip_in(), null_prinit(), null_in();
ext word slip_out(), null_out();

net	nets[NNETS] =	/* Make it explicit to prevent errors */
{{ NULL, null_prinit, null_out, NULL, null_in, NULL, NULL, /* null network */
    10, 4, 0, 0, EMAX, sizeof(e10pkt) + 4, 0,
    nulldct, &nulldct[0], &nulldct[1], T_E10, 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 },
  { NULL, slip_prinit, slip_out, NULL, slip_in, NULL, NULL, /* SLIP */
    3, 6, 0, 0, SLIP_MTU, 0, 0,
    dhidct, &dhidct[0], &dhodct[0], T_SLIP, 0 },
  { NULL, slip_prinit, slip_out, NULL, slip_in, NULL, NULL, /* SLIP */
    3, 6, 0, 0, SLIP_MTU, 0, 0,
    dhidct, &dhidct[1], &dhodct[1], T_SLIP, 0 },
  { NULL, slip_prinit, slip_out, NULL, slip_in, NULL, NULL, /* SLIP */
    3, 6, 0, 0, SLIP_MTU, 0, 0,
    dhidct, &dhidct[2], &dhodct[2], T_SLIP, 0 },
};

/* 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 */
