*#ident	"$Revision: 4.12 $"
*
* BSD: Berkeley Network Services
*
*FLAG	PREFIX	SOFT	#DEV	DEPENDENCIES
ox	bsd	-	-	socket
				bsd_init(){}
				getdtablesize(){nopkg}
				gethostname(){nopkg}
				sethostname(){nopkg}
				getdomainname(){nopkg}
				setdomainname(){nopkg}
$$$$

/* allow hardware computations of checksums */
int ifcksum = 1;

/* 1 = enable UDP checksums. This should always be enabled. */
int udpcksum = 1;

/*
 * This parameter affects hosts with more than 1 hardware network interface.
 * Hosts that have only a single interface will not forward IP packets.
 *
 * 1 = Forward IP packets received that should be resent to another host.
 * 0 = Don't forward packets. ipgateway affects if an ICMP error is sent or not.
 *
 * This parameter also enables/disables IP source routing.
 *
 * IP multicast packets can be forwared if the boot/ip_mroute.o file exists
 * when the kernel is configured and the mrouted(1M) daemon is used.
 */
int ipforwarding = 1;

/*
 * 1 = When forwarding IP packets, and a packet is forwarded using the same
 *     interface on which it arrived and if the source host is on the
 *     directly-attached network, then send an ICMP redirect to the source host.
 *     If the packet was forwarded using a route to a host or to a subnet,
 *     a host redirect is sent, otherwise a network redirect is sent.
 * 0 = The generation of redirects is inhibited.
 */
int ipsendredirects = 1;

/*
 * 1 = If we're a gateway but IP forwarding is off or there's currently
 *     only 1 active interface, then return an ICMP "network unreachable"
 *     error to the sender of a packet that can't be forwarded.
 * 0 = Don't send the ICMP error, just drop the packet.
 */
int ipgateway = 0;

/*
 * 1 = For gateways (>1 interface and ipforwarding = 1), cause a broadcast
 *     packet destined for network A that arrived on network B's interface
 *     to be broadcast on network A.
 * 0 = Don't broadcast the packet to network A, though this host will receive
 *     the packet.
 */
int ipdirected_broadcast = 0;

/*
 * TCP calculates a maximum segment size to use for each connection, and
 * sends no datagrams larger than that size. This size will be no larger
 * than that supported on the outgoing interface.  Furthermore, if the
 * destination is not on the local network, the size will be no larger
 * than 576 bytes, unless the tcp_mtudisc option below is set.
 *
 * subnetsarelocal:
 *   1 = other subnets of a directly-connected subnetted network are
 *       considered to be local.
 *   0 = other subnets are not local.
 *
 * allnetsarelocal:
 *   1 = all networks are considered to be local.
 *   0 = all networks are not local.
 *  The tcp_mtudisc option below is a better way to accomplish the same end.
 */
int subnetsarelocal = 1;
int allnetsarelocal = 0;

/*
 * If not zero, limit the maximum ethernet packet size to this
 */
int maxethermtu = 0;

/*
 * Debugging:
 *   1 = print debugging messages on the console.
 *   0 = don't print any messages.
 */
int icmpprintfs = 0;
int ipprintfs   = 0;
int tcpprintfs  = 0;

/* Use loopback interface for local traffic */
int useloopback = 1;

/* loopback interface MTU */
int lomtu = 112+8*1024;			/* MLEN + integral number of pages */

/* TCP window sizes/socket space reservation */
unsigned long tcp_sendspace = 60 * 1024;	/* must be < 512K */
unsigned long tcp_recvspace = 60 * 1024;	/* must be < 512K */

/* TCP large windows (RFC 1323) control. */
int tcp_winscale = 1;
int tcp_tsecho = 1;

/* TCP MTU Discovery control. This controls the use of RFC 1191
 * methods for determining TCP maximum segment sizes.  If this flag is on,
 * TCP will set the dont-fragment flag in the IP headers of TCP segments.
 * The "fragmentation needed" messages from routers will be used to determine
 * new MSS size for TCP connections.  When this flag is set, the MSS of TCP
 * connections will no longer default to tcp_mssdflt when connections are
 * not local.
 */
int tcp_mtudisc = 0;

/* TCP MTU Discovery, table of typical MTUs.  If TCP isn't told the
 * MTU of the far side of the complaining router, it will pick the
 * next smaller value from this table.  It contains typical MTUs
 * you might encounter.  This is from Table 7-1 in RFC 1191.
 *
 * Warning: this list must be in descending order and must be
 * terminated with a zero.
 */
int tcp_mtutable[] = {
	65535,
	65280,	/* HIPPI */
	32768,
	17914,
	8166,	/* 802.4 */
	4352,	/* FDDI */
	2002,
	1492,	/* Ethernet/802.3 */
	1006,	/* Arpanet */
	508,
	0 /* ZERO MUST TERMINATE THIS LIST! */ };


/* UDP maximum datagram size */
unsigned long udp_sendspace = 60 * 1024;	/* must be < (64K - 28) */

/* UDP socket buffers: reserve space for (sendspace * recvgram) bytes */
unsigned long udp_recvgrams = 2;		/* clamped to 64K/sendspace */

/*
 * Default Time-To-Live (TTL) values:
 *
 * These values should be sufficient for the Internet.
 * Increase them for extremely large internets with large "diameters."
 */
int tcp_ttl = 60;
int udp_ttl = 60;

/*
 * This changes the limit on the backlog of connections waiting by be
 * accepted by a socket after the listen() system call.  
 */
int somaxconn = 0;			/* 0=do not change system default */

/*
 * Mbuf parameters:
 *
 * Maximum # of 1-page clusters.  This limits the total memory that
 * network buffers, "mbufs," can consume.
 * A 0 value tells the kernel to set the number (minimum 768) based
 * on the amount of physical memory configured in the machine.
 * The current formula is 3072KB for machines with less than 64MB
 * of memory, 8MB for machines with up to 256MB of memory, and
 * 16MB for larger systems.
 */
int nm_clusters = 0;

/*
 * Maximum # of free clusters.  The mbuf allocation system tends to
 * keep a pool of free clusters this large.  A big system which
 * experiences bursts of load should use a larger value than a
 * small system or a system with a relatively constant network load.
 * A 0 value tells the kernel to set the number based on the amount
 * of physical memory configured in the machine.  The current formula
 * is 32KB for machines with less than 64MB of memory, 96KB for
 * machines with up to 256MB of memory, and 256KB for larger systems.
 *
 * This value is in pages.
 */
int mbuf_max_clfree = 0;		/* <= nm_clusters */

/*
 * Maximum # of free "little" mbufs.  It should be only be big enough to
 * satisfy demands in excess of the the average mbuf utilization.
 */
int mbuf_max_mfree = 32*2;
