ReactOS  0.4.14-dev-293-g2b39b42
ws2atm.h
Go to the documentation of this file.
1 
6 #ifndef _WS2ATM_H_
7 #define _WS2ATM_H_
8 
9 #include <pshpack4.h>
10 
11 #define ATMPROTO_AALUSER 0x00
12 #define ATMPROTO_AAL1 0x01
13 #define ATMPROTO_AAL2 0x02
14 #define ATMPROTO_AAL34 0x03
15 #define ATMPROTO_AAL5 0x05
16 
17 #define SAP_FIELD_ABSENT 0xFFFFFFFE
18 #define SAP_FIELD_ANY 0xFFFFFFFF
19 #define SAP_FIELD_ANY_AESA_SEL 0xFFFFFFFA
20 #define SAP_FIELD_ANY_AESA_REST 0xFFFFFFFB
21 
22 #define ATM_E164 0x01
23 #define ATM_NSAP 0x02
24 #define ATM_AESA 0x02
25 
26 #define ATM_ADDR_SIZE 20
27 typedef struct {
31 } ATM_ADDRESS;
32 
33 #define BLLI_L2_ISO_1745 0x01
34 #define BLLI_L2_Q921 0x02
35 #define BLLI_L2_X25L 0x06
36 #define BLLI_L2_X25M 0x07
37 #define BLLI_L2_ELAPB 0x08
38 #define BLLI_L2_HDLC_ARM 0x09
39 #define BLLI_L2_HDLC_NRM 0x0A
40 #define BLLI_L2_HDLC_ABM 0x0B
41 #define BLLI_L2_LLC 0x0C
42 #define BLLI_L2_X75 0x0D
43 #define BLLI_L2_Q922 0x0E
44 #define BLLI_L2_USER_SPECIFIED 0x10
45 #define BLLI_L2_ISO_7776 0x11
46 
47 #define BLLI_L3_X25 0x06
48 #define BLLI_L3_ISO_8208 0x07
49 #define BLLI_L3_X223 0x08
50 #define BLLI_L3_SIO_8473 0x09
51 #define BLLI_L3_T70 0x0A
52 #define BLLI_L3_ISO_TR9577 0x0B
53 #define BLLI_L3_USER_SPECIFIED 0x10
54 
55 #define BLLI_L3_IPI_SNAP 0x80
56 #define BLLI_L3_IPI_IP 0xCC
57 
58 typedef struct {
64  UCHAR SnapID[5];
65 } ATM_BLLI;
66 
67 #define BHLI_ISO 0x00
68 #define BHLI_UserSpecific 0x01
69 #define BHLI_HighLayerProfile 0x02
70 #define BHLI_VendorSpecificAppId 0x03
71 
72 typedef struct {
75  UCHAR HighLayerInfo[8];
76 } ATM_BHLI;
77 
78 typedef struct sockaddr_atm {
84 
85 typedef enum {
89 
90 typedef struct {
93  UCHAR IE[1];
94 } Q2931_IE;
95 
96 typedef enum {
98 } AAL_TYPE;
99 
100 #define AAL5_MODE_MESSAGE 0x01
101 #define AAL5_MODE_STREAMING 0x02
102 
103 #define AAL5_SSCS_NULL 0x00
104 #define AAL5_SSCS_SSCOP_ASSURED 0x01
105 #define AAL5_SSCS_SSCOP_NON_ASSURED 0x02
106 #define AAL5_SSCS_FRAME_RELAY 0x04
107 
108 typedef struct {
114 
115 typedef struct {
118 
119 typedef struct {
121  union {
124  } AALSpecificParameters;
126 
127 typedef struct {
135 } ATM_TD;
136 
137 typedef struct {
142 
143 #define BCOB_A 0x01
144 #define BCOB_C 0x03
145 #define BCOB_X 0x10
146 
147 #define TT_NOIND 0x00
148 #define TT_CBR 0x04
149 #define TT_VBR 0x08
150 
151 #define TR_NOIND 0x00
152 #define TR_END_TO_END 0x01
153 #define TR_NO_END_TO_END 0x02
154 
155 #define CLIP_NOT 0x00
156 #define CLIP_SUS 0x20
157 
158 #define UP_P2P 0x00
159 #define UP_P2MP 0x01
160 
161 typedef struct {
168 
170 
171 #define BLLI_L2_MODE_NORMAL 0x40
172 #define BLLI_L2_MODE_EXT 0x80
173 
174 #define BLLI_L3_MODE_NORMAL 0x40
175 #define BLLI_L3_MODE_EXT 0x80
176 
177 #define BLLI_L3_PACKET_16 0x04
178 #define BLLI_L3_PACKET_32 0x05
179 #define BLLI_L3_PACKET_64 0x06
180 #define BLLI_L3_PACKET_128 0x07
181 #define BLLI_L3_PACKET_256 0x08
182 #define BLLI_L3_PACKET_512 0x09
183 #define BLLI_L3_PACKET_1024 0x0A
184 #define BLLI_L3_PACKET_2048 0x0B
185 #define BLLI_L3_PACKET_4096 0x0C
186 
187 typedef struct {
198  UCHAR SnapID[5];
199 } ATM_BLLI_IE;
200 
203 
204 #define PI_ALLOWED 0x00
205 #define PI_RESTRICTED 0x40
206 #define PI_NUMBER_NOT_AVAILABLE 0x80
207 
208 #define SI_USER_NOT_SCREENED 0x00
209 #define SI_USER_PASSED 0x01
210 #define SI_USER_FAILED 0x02
211 #define SI_NETWORK 0x03
212 
213 typedef struct {
218 
220 
221 #define CAUSE_LOC_USER 0x00
222 #define CAUSE_LOC_PRIVATE_LOCAL 0x01
223 #define CAUSE_LOC_PUBLIC_LOCAL 0x02
224 #define CAUSE_LOC_TRANSIT_NETWORK 0x03
225 #define CAUSE_LOC_PUBLIC_REMOTE 0x04
226 #define CAUSE_LOC_PRIVATE_REMOTE 0x05
227 #define CAUSE_LOC_INTERNATIONAL_NETWORK 0x07
228 #define CAUSE_LOC_BEYOND_INTERWORKING 0x0A
229 
230 #define CAUSE_UNALLOCATED_NUMBER 0x01
231 #define CAUSE_NO_ROUTE_TO_TRANSIT_NETWORK 0x02
232 #define CAUSE_NO_ROUTE_TO_DESTINATION 0x03
233 #define CAUSE_VPI_VCI_UNACCEPTABLE 0x0A
234 #define CAUSE_NORMAL_CALL_CLEARING 0x10
235 #define CAUSE_USER_BUSY 0x11
236 #define CAUSE_NO_USER_RESPONDING 0x12
237 #define CAUSE_CALL_REJECTED 0x15
238 #define CAUSE_NUMBER_CHANGED 0x16
239 #define CAUSE_USER_REJECTS_CLIR 0x17
240 #define CAUSE_DESTINATION_OUT_OF_ORDER 0x1B
241 #define CAUSE_INVALID_NUMBER_FORMAT 0x1C
242 #define CAUSE_STATUS_ENQUIRY_RESPONSE 0x1E
243 #define CAUSE_NORMAL_UNSPECIFIED 0x1F
244 #define CAUSE_VPI_VCI_UNAVAILABLE 0x23
245 #define CAUSE_NETWORK_OUT_OF_ORDER 0x26
246 #define CAUSE_TEMPORARY_FAILURE 0x29
247 #define CAUSE_ACCESS_INFORMAION_DISCARDED 0x2B
248 #define CAUSE_NO_VPI_VCI_AVAILABLE 0x2D
249 #define CAUSE_RESOURCE_UNAVAILABLE 0x2F
250 #define CAUSE_QOS_UNAVAILABLE 0x31
251 #define CAUSE_USER_CELL_RATE_UNAVAILABLE 0x33
252 #define CAUSE_BEARER_CAPABILITY_UNAUTHORIZED 0x39
253 #define CAUSE_BEARER_CAPABILITY_UNAVAILABLE 0x3A
254 #define CAUSE_OPTION_UNAVAILABLE 0x3F
255 #define CAUSE_BEARER_CAPABILITY_UNIMPLEMENTED 0x41
256 #define CAUSE_UNSUPPORTED_TRAFFIC_PARAMETERS 0x49
257 #define CAUSE_INVALID_CALL_REFERENCE 0x51
258 #define CAUSE_CHANNEL_NONEXISTENT 0x52
259 #define CAUSE_INCOMPATIBLE_DESTINATION 0x58
260 #define CAUSE_INVALID_ENDPOINT_REFERENCE 0x59
261 #define CAUSE_INVALID_TRANSIT_NETWORK_SELECTION 0x5B
262 #define CAUSE_TOO_MANY_PENDING_ADD_PARTY 0x5C
263 #define CAUSE_AAL_PARAMETERS_UNSUPPORTED 0x5D
264 #define CAUSE_MANDATORY_IE_MISSING 0x60
265 #define CAUSE_UNIMPLEMENTED_MESSAGE_TYPE 0x61
266 #define CAUSE_UNIMPLEMENTED_IE 0x63
267 #define CAUSE_INVALID_IE_CONTENTS 0x64
268 #define CAUSE_INVALID_STATE_FOR_MESSAGE 0x65
269 #define CAUSE_RECOVERY_ON_TIMEOUT 0x66
270 #define CAUSE_INCORRECT_MESSAGE_LENGTH 0x68
271 #define CAUSE_PROTOCOL_ERROR 0x6F
272 
273 #define CAUSE_COND_UNKNOWN 0x00
274 #define CAUSE_COND_PERMANENT 0x01
275 #define CAUSE_COND_TRANSIENT 0x02
276 
277 #define CAUSE_REASON_USER 0x00
278 #define CAUSE_REASON_IE_MISSING 0x04
279 #define CAUSE_REASON_IE_INSUFFICIENT 0x08
280 
281 #define CAUSE_PU_PROVIDER 0x00
282 #define CAUSE_PU_USER 0x08
283 
284 #define CAUSE_NA_NORMAL 0x00
285 #define CAUSE_NA_ABNORMAL 0x04
286 
287 typedef struct {
291  UCHAR Diagnostics[4];
292 } ATM_CAUSE_IE;
293 
294 #define QOS_CLASS0 0x00
295 #define QOS_CLASS1 0x01
296 #define QOS_CLASS2 0x02
297 #define QOS_CLASS3 0x03
298 #define QOS_CLASS4 0x04
299 
300 typedef struct {
304 
305 #define TNS_TYPE_NATIONAL 0x40
306 
307 #define TNS_PLAN_CARRIER_ID_CODE 0x01
308 
309 typedef struct {
313  UCHAR NetworkId[1];
315 
316 #define SIO_GET_NUMBER_OF_ATM_DEVICES 0x50160001
317 #define SIO_GET_ATM_ADDRESS 0xd0160002
318 #define SIO_ASSOCIATE_PVC 0x90160003
319 #define SIO_GET_ATM_CONNECTION_ID 0x50160004
320 
321 typedef struct {
326 
327 typedef struct {
331 
332 #include <poppack.h>
333 #endif
AAL_TYPE AALType
Definition: ws2atm.h:120
WINBOOL Tagging
Definition: ws2atm.h:134
UCHAR Layer3Mode
Definition: ws2atm.h:193
DWORD HighLayerInfoLength
Definition: ws2atm.h:74
struct _ATM_CALLING_PARTY_NUMBER_IE ATM_CALLING_PARTY_NUMBER_IE
ULONG SustainableCellRate_CLP01
Definition: ws2atm.h:131
struct _ATM_BLLI_IE ATM_BLLI_IE
ULONG IELength
Definition: ws2atm.h:92
UCHAR QOSClassForward
Definition: ws2atm.h:301
struct _ATM_TRANSIT_NETWORK_SELECTION_IE ATM_TRANSIT_NETWORK_SELECTION_IE
struct _ATM_CAUSE_IE ATM_CAUSE_IE
Q2931_IE_TYPE
Definition: ws2atm.h:85
struct sockaddr_atm * LPSOCKADDR_ATM
ULONG PeakCellRate_CLP0
Definition: ws2atm.h:128
DWORD AddressType
Definition: ws2atm.h:28
#define ATM_ADDR_SIZE
Definition: ws2atm.h:26
ATM_ADDRESS ATM_CALLED_PARTY_SUBADDRESS_IE
Definition: ws2atm.h:202
ULONG ForwardMaxCPCSSDUSize
Definition: ws2atm.h:109
ULONG MaxBurstSize_CLP01
Definition: ws2atm.h:133
DWORD Layer2UserSpecifiedProtocol
Definition: ws2atm.h:191
struct sockaddr_atm SOCKADDR_ATM
Definition: ws2atm.h:127
DWORD HighLayerInfoType
Definition: ws2atm.h:73
UCHAR Mode
Definition: ws2atm.h:111
AAL5_PARAMETERS AAL5Parameters
Definition: ws2atm.h:122
DWORD Layer3UserSpecifiedProtocol
Definition: ws2atm.h:62
struct sockaddr_atm * PSOCKADDR_ATM
Definition: ws2atm.h:86
struct _Q2931_IE Q2931_IE
ULONG MaxBurstSize_CLP0
Definition: ws2atm.h:132
struct _AALUSER_PARAMETERS AALUSER_PARAMETERS
ULONG PeakCellRate_CLP01
Definition: ws2atm.h:129
struct _ATM_ADDRESS ATM_ADDRESS
ATM_ADDRESS ATM_CALLED_PARTY_NUMBER_IE
Definition: ws2atm.h:201
ATM_ADDRESS satm_number
Definition: ws2atm.h:80
DWORD Layer3IPI
Definition: ws2atm.h:197
DWORD NumofDigits
Definition: ws2atm.h:29
struct sockaddr_atm sockaddr_atm
ULONG SustainableCellRate_CLP0
Definition: ws2atm.h:130
ULONG UserDefined
Definition: ws2atm.h:116
UCHAR SSCSType
Definition: ws2atm.h:112
DWORD DeviceNumber
Definition: ws2atm.h:322
int32_t WINBOOL
Definition: typedefs.h:56
Q2931_IE_TYPE IEType
Definition: ws2atm.h:91
struct _ATM_BROADBAND_BEARER_CAPABILITY_IE ATM_BROADBAND_BEARER_CAPABILITY_IE
u_short satm_family
Definition: ws2atm.h:79
struct _AAL5_PARAMETERS AAL5_PARAMETERS
DWORD Layer2Protocol
Definition: ws2atm.h:59
unsigned long DWORD
Definition: ntddk_ex.h:95
ATM_BHLI ATM_BHLI_IE
Definition: ws2atm.h:169
struct _AAL_PARAMETERS_IE AAL_PARAMETERS_IE
unsigned short u_short
Definition: types.h:81
AAL_TYPE
Definition: ws2atm.h:96
unsigned char UCHAR
Definition: xmlstorage.h:181
DWORD Layer3Protocol
Definition: ws2atm.h:192
ULONG BackwardMaxCPCSSDUSize
Definition: ws2atm.h:110
UCHAR Layer3PacketWindowSize
Definition: ws2atm.h:195
UCHAR Layer3DefaultPacketSize
Definition: ws2atm.h:194
UCHAR Layer2WindowSize
Definition: ws2atm.h:190
UCHAR DiagnosticsLength
Definition: ws2atm.h:290
UCHAR Layer2Mode
Definition: ws2atm.h:189
ATM_BLLI satm_blli
Definition: ws2atm.h:81
ATM_ADDRESS ATM_CALLING_PARTY_SUBADDRESS_IE
Definition: ws2atm.h:219
DWORD Layer3UserSpecifiedProtocol
Definition: ws2atm.h:196
DWORD Layer3IPI
Definition: ws2atm.h:63
unsigned int ULONG
Definition: retypes.h:1
DWORD Layer2Protocol
Definition: ws2atm.h:188
ATM_BHLI satm_bhli
Definition: ws2atm.h:82
UCHAR QOSClassBackward
Definition: ws2atm.h:302
DWORD Layer3Protocol
Definition: ws2atm.h:61
Definition: ws2atm.h:86
DWORD Layer2UserSpecifiedProtocol
Definition: ws2atm.h:60
AALUSER_PARAMETERS AALUserParameters
Definition: ws2atm.h:123
struct _ATM_TRAFFIC_DESCRIPTOR_IE ATM_TRAFFIC_DESCRIPTOR_IE
UCHAR Cause
Definition: ws2atm.h:289
UCHAR Location
Definition: ws2atm.h:288
struct _ATM_QOS_CLASS_IE ATM_QOS_CLASS_IE
ATM_ADDRESS ATM_Number
Definition: ws2atm.h:214
ATM_CONNECTION_ID PvcConnectionId
Definition: ws2atm.h:328