#define DADDLEN 6		/* ethernet address length */
#define	MTU 1500		/* maximum ethernet transmission unit */
#define WINDOWSIZE (1 << 12)	/* 4Kbytes */
#define TSENDSIZE 1024
#define TMAXSIZE (IMAXLEN - 20)	/* max TCP data length */
#define UMAXLEN (IMAXLEN - 8)	/* max UDP data length */
#define	IMAXLEN	(MTU - 20)	/* max IP data length */
#define ICMPMAX 300 
#define	AMAXLEN 64		/* max ARP packet length */

#define NPORTS	32

#define MINRTO	1
#define MAXRTO	100
#define CONNWAITTIME 20		/* default contime in seconds */
#define htons(x) ((u_int)((u_char)(x) << 8) | (u_char)((unsigned int)(x) >> 8))
#define ntohs(x) ((u_int)((u_char)(x) << 8) | (u_char)((unsigned int)(x) >> 8))
#define htonl(x) ((((u_long)htons((u_short)x)) << 16) | \
		 ((u_long)htons((u_long)x >> 16)))
#define ntohl(x)	htonl(x)
