blob: 45e8373609bb56879200111e9b16dc21687c5544 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
/*++
Copyright (c) 1993 Microsoft Corporation
Module Name:
Const.h
Abstract:
This module declares the obal data used by the NetWare redirector
file system.
Author:
Colin Watson [ColinW] 14-Jan-1993
Revision History:
--*/
#ifndef _NWCONST_
#define _NWCONST_
// Number of spare stack locations required in Irp's submitted to this
// filesystem
#define NWRDR_IO_STACKSIZE 2
//
// NT uses a system time measured in 100 nanosecnd intervals. define
// convenient constants for setting the timer.
//
#define MICROSECONDS 10
#define MILLISECONDS MICROSECONDS*1000
#define SECONDS MILLISECONDS*1000
#define NwOneSecond 10000000
//
// Default number of times to retranmit a packet before giving up
// on waiting for a response.
//
#define DEFAULT_RETRY_COUNT 10
//
// Amount of time, in seconds, an idle SCB or VCB should be kept around before
// being cleaned up.
//
#define DORMANT_SCB_KEEP_TIME 120
#define DORMANT_VCB_KEEP_TIME 120
//
// Largest netware file name
//
#define NW_MAX_FILENAME_LENGTH 255
#define NW_MAX_FILENAME_SIZE ( NW_MAX_FILENAME_LENGTH * sizeof(WCHAR) )
//
// Default frequency for running the scavenger (in 1/18th second ticks)
// Approx once per minute.
//
#define DEFAULT_SCAVENGER_TICK_RUN_COUNT 1100
//
// Size of the drive map table. With room for 26 letter connections,
// and 10 LPT connections.
//
#define MAX_DISK_REDIRECTIONS 26
#define MAX_LPT_REDIRECTIONS 10
#define DRIVE_MAP_TABLE_SIZE (MAX_DISK_REDIRECTIONS + MAX_LPT_REDIRECTIONS)
//
// The size of the largest packet we can generate, rounded up to DWORD
// size. This longest packet is a long name query.
//
#define MAX_SEND_DATA 256+32
//
// The size of the largest non READ packet we can receive, rounded up to DWORD
// size. This longest packet is read queue job list of 250 jobs
//
#define MAX_RECV_DATA 544+32
//
// Best guess at max packet size, if the transport can't tell us.
// Pick the largest value that will work on any net.
//
#define DEFAULT_PACKET_SIZE 512
//
// How close we want to get to true MTU of a connection
//
#define BURST_PACKET_SIZE_TOLERANCE 8
//
// Default tick count, in case the transport won't fess up.
//
#define DEFAULT_TICK_COUNT 2
//
// Maximum number of times to retry SAP broadcast if we get no response
//
#define MAX_SAP_RETRIES 2
//
// The maximum number of SAP response to process if we get many.
//
#define MAX_SAP_RESPONSES 4
#define LFN_NO_OS2_NAME_SPACE -1
//
// The ordinal for the long namespace in the namespace packet.
//
#define LONG_NAME_SPACE_ORDINAL 4
//
// Largest possible SAP Response size and size of a SAP record
//
#define MAX_SAP_RESPONSE_SIZE 512
#define SAP_RECORD_SIZE (2 + 48 + 12 + 2)
#define FIND_NEAREST_RESP_SIZE (2 + SAP_RECORD_SIZE)
//
// Netware limits
//
#define MAX_SERVER_NAME_LENGTH 48
#define MAX_UNICODE_UID_LENGTH 8
#define MAX_USER_NAME_LENGTH 100 // BUGBUG - What is correct value?
#define MAX_VOLUME_NAME_LENGTH 16 // BUGBUG - What is correct value?
//
// Maximum number of unique drive letters we will send to a server.
// Only seems to matter to portable netWare servers.
//
#define MAX_DRIVES 64
//
// Default Timeout Event interval. We do not want to fill up the
// event-log with timeout events. If a timeout event has been logged
// in the last timeout event interval, we will ignore further timeout
// events.
//
#define DEFAULT_TIMEOUT_EVENT_INTERVAL 5
#endif // _NWCONST_
|