diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/inc/ntspider.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/inc/ntspider.h')
-rw-r--r-- | private/inc/ntspider.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/private/inc/ntspider.h b/private/inc/ntspider.h new file mode 100644 index 000000000..9e93b49ec --- /dev/null +++ b/private/inc/ntspider.h @@ -0,0 +1,90 @@ +/*++ + +Copyright (c) 1991 Microsoft Corporation + +Module Name: + + ntspider.h + +Abstract: + + This module contains the declarations and definitions to compile + SpiderStreams and SpiderTCP sources for NT. + + This must be the first file included in any source that includes a + Spider header file !! + + +Author: + + Eric Chin (ericc) July 18, 1991 + +Revision History: + +--*/ + +/* + * Since several variants of SpiderStreams and SpiderTCP can be built from + * one source base, there are many "#ifdef" directives sprinkled throughout + * Spider's code. This affects structure definitions, function arguments, .... + * + * For NT, we build one variant of Spider's products. To ensure that every + * Spider header is preprocessed identically and correctly every time, the + * options were: + * + * a) preprocess the Spider sources for NT, and check them in, + * b) add the definitions to CFLAGS in each and every directory's makefile, + * c) add the definitions to the environment variable, C_DEFINES, + * d) slip the macro definitions into <sys/stream.h>, or some such + * ubiquitous file, + * e) collect all the macro definitions in one header file, and modify + * every kernel-level Spider source to include it, + * + * This file implements option (e). The goal is to migrate to option (a). + * + */ +#ifndef _NTSPIDER_ +#define _NTSPIDER_ + +// +// temporary hack because CRT dev_t is a short +// + +#define _DEV_T_DEFINED +typedef unsigned long _dev_t; // for stat.h compatibility with types.h +typedef unsigned long dev_t; + + +/* + * Definitions for Conditional Compilation + */ +#define ALIGNDATA 1 /* align fields before use */ +#define DL_VERSION 2 /* sndis version */ +#define GENERICE 1 /* generic ethernet interface */ +#define IPOPTS 1 /* ip options */ +#define MP 1 /* build for multiprocessors */ +#define NETSTAT 1 /* netstat support */ +#define SINGLE_MALLOC 1 /* ExAllocatePool() only once */ +#define SNMP 1 /* snmp support */ +#define SNMP_STATS 1 /* snmp support */ +#define TCPOPT 1 /* tcp options */ +#define BUFFER_DATA 1 /* buffer data in nbt on sends */ +#define NO_LOCK_STATS 1 /* don't lock MIB statistics */ +#define OLD_RTX 1 /* use old TCP rtx code */ + +//#define BSD4_3_KEEPALIVE 1 /* Berkeley style tcp keepalives */ +//#define ROUTED 1 /* routing information protocol */ +//#define NOTRAILER 1 /* BUGBUG: this is temporary !! */ +//#define HOSTREQ 1 /* rfc 1122, 1123 compliance */ + + +/* + * Do not define the following manifest constants unless you absolutely + * know the consequences !! + */ +//#define ARPRTASK 1 /* use arp's service procedures */ +//#define MULTIH 1 /* multiple ip nets per interface */ +//#define NO_TLI 1 /* no TLI/XTI interface */ +//#define TYPE_HACK 1 /* put bogus packets on the wire */ + +#endif /* _NTSPIDER_ */ |