

* TCP  		streams driver

%DRIVER

Type:		stream
Prefix:		tcp
Funcs:		init
Major:		- 
* Controller:
* Physical:
* Logical:
* LineDis:
* Options:

%PARAM

NTCP 		128 	# number of minor devices
MAXQLEN 	12	#
MAXTCPWIN 	8192	# maximum offered TCP window (in bytes)
MINTCPWIN 	512	# minimum offered TCP window (in bytes)
TCP_TOS 	0	# default IP type-of-service 
TCP_TTL 	30	# default IP time-to-live 
TCPOPT_OUT 	0	# in or out options 
TCPCLASS 	0x00 	# Security Classification

* WINDOW 	4096	# default offered TCP window (in bytes)

%CONFIG

#include "tcp/sys/socket.h"
#include "tcp/sys/inet.h"
#include "tcp/sys/arp.h"
#include "tcp/sys/if.h"
#include "tcp/sys/in.h"
#include "tcp/sys/ip.h"
#include "tcp/sys/route.h"
#include "tcp/sys/tcp.h"

struct tcpd 	tcpd[NTCP];

int		tcpd_cnt 	= NTCP;
int		tcp_maxconind	= MAXQLEN;
int		tcp_maxrcvwin	= MAXTCPWIN;
int		tcp_minrcvwin	= MINTCPWIN;

unsigned char 	tcp_tos 	= TCP_TOS;
unsigned char 	tcp_ttl 	= TCP_TTL;

/* TCPOPT_OUT match the value of IPOPT_OUT.  */
char 		tcpopt_out 	= TCPOPT_OUT;
/* TCPCLASS match the value of MYCLASS.  */
char		tcp_my_hosts_class	= TCPCLASS;
