home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GRIPS 2: Government Rast…rocessing Software & Data
/
GRIPS_2.cdr
/
dos
/
ncsa_tel
/
tel_2_2_
/
source
/
whatami.h
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-15
|
3KB
|
101 lines
/*
* Whatami.h
* Machine specific information for NCSA Telnet TCP/IP kernel
****************************************************************************
* *
* *
* NCSA Telnet *
* by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer *
* *
* National Center for Supercomputing Applications *
* 152 Computing Applications Building *
* 605 E. Springfield Ave. *
* Champaign, IL 61820 *
* *
****************************************************************************
* Defines for TCP/IP library, are you a Mac or a PC?
*/
#ifndef MAC
#define PC 1
#define ETHER 1
#define UB 1
#endif
#ifndef ETHER
#define ATALK 1
#endif
/*
* Defines which have to do with Ethernet addressing versus Appletalk
* addressing. Ethernet has 6 bytes of hardware address, ATALK has 4
*/
#ifdef ETHER
#define DADDLEN 6
#define WINDOWSIZE 4096
#define TSENDSIZE 512
#define DEFWINDOW 1024
#define DEFSEG 1024
#define TMAXSIZE 1024
#define UMAXLEN 1024
#define ICMPMAX 300
#else
/* define for AppleTalk */
#define DADDLEN 4
#define WINDOWSIZE 4096
#define TSENDSIZE 512
#define DEFWINDOW 512
#define DEFSEG 512
#define TMAXSIZE 512
#define UMAXLEN 512
#define ICMPMAX 300
#endif
#ifdef PC
/*
* define length of an integer - can be 16 or 32, we need to know which
*/
typedef char int8;
typedef unsigned char uint8;
typedef int int16;
typedef long int int32;
typedef unsigned int uint16;
typedef unsigned int uint;
typedef unsigned long int uint32;
#define TICKSPERSEC 18
#define SMINRTO 5
#define WRAPTIME 86400L /* in seconds, only for PC */
#define NPORTS 30
#define CONNWAITTIME 20 /* default contime in seconds */
uint32 longswap();
#define NFDEF {2,0,0}
#define NBDEF {0,0,0}
#define BFDEF {0,0,0}
#define BBDEF {2,0,0}
#define UFDEF {1,0,0}
#define UBDEF {0,0,0}
#else
#define TICKSPERSEC 60
#define SMINRTO 25
#define NPORTS 30
#define CONNWAITTIME 20 /* default contime in seconds */
#define longswap(x) x
#define intswap(x) x
#define movebytes(x,y,z) movmem(y,x,z)
#define movenbytes(x,y,z) movmem(y,x,z)
#define n_putchar(x) putchar(x)
#define n_puts(x) putln(x)
#define NPORTS 30
#endif
#include "netevent.h"