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

/* Various semi-static parameters. Anything that is site dependent,
 * or might change, that can easily be made an external should be
 * to prevent painful recompilations on a site-dependant basis.
 * The param.c file will need to be recompiled when new networks
 * and protocols are added to the system, but a global recompilation
 * will not be necesary in those cases.
 */


/* Priority of packet processing */

#define	GWISPRI	030		/* Input and output restart */
#define	GWOSPRI	040
#define	GWODPRI	034		/* Output error consideration level */
#define	GWIPPRI	070		/* Input packet handling */

#define STATPRI 0300		/* Status logging */

/* Amount of memory to use for packet buffers; number is log(2)
 * of free memory to leave unallocated. Also, share of buffers
 * to allocate to system pool, amount of system pool (shared) to
 * devote to any one queue without question and pool low water mark.
 */

#define	MEMUSE	3		/* Use 82% of available memory */
#define	MEMPSN	3		/* System permanent (input) queue share */
#define	MEMPSD	7		/* expressed as numerator/denominator */
#define	MEMTSN	3		/* System transient (output) queue pool shr */
#define	MEMTSD	7
#define	MEMBPN	5		/* User queue pool share */
#define	MEMBPD	9
#define	MEMLWN	1		/* Low water mark */
#define	MEMLWD	7


/* Startup delay (in seconds) for forwarding code after gateway
 * initialization; this gives the protocol processes time to start
 * up and register themselves with drivers, etc.
 * Dally time in seconds to restart network when input reenable failed.
 */

#define	GWSDLY	1
#define	GWIRD	1		/* Was 15 ticks */


/* Number of 'accidental' retransmits allowed before the host is
 * considered tardy, and the dally time in seconds [used to be (and
 * really should be) in ticks] if so.
 */

#define	MXR	3
#define	XDLY	1


/* Protocol numbers for system wide use. Note that not all protocol
 * handlers are loaded in all systems, but all the drivers contain
 * code to handle many packets formats at any time.
 */

#define	P_MAX	4		/* Smallest unassigned number */

#define	P_IN	0
#define	P_CH	1
#define	P_PUP	2
#define	P_ARP	3

/* Network type numbers; used for network specific support tasks.
 */

#define	T_MAX	8		/* Smallest unassigned number */

#define	T_VI	0		/* VI LNI */
#define	T_VII	1		/* VII LNI */
#define	T_CH	2		/* CHAOS Net */
#define	T_ETH	3 		/* EtherNet (3 MBit) */
#define	T_ARPA	4		/* ARPANet */
#define	T_CHP	5		/* CHAOS protocol net */
#define	T_SL	6		/* Serial line interface */
#define	T_E10	7		/* EtherNet (10 MBit) */


/* Machine type numbers */
#define M_MAX	3		/* Smallest unassinged number */

#define M_uVAX1 1		/* microVAX I */
#define M_uVAX2 2		/* microVAX II */
