Subversion Repositories HelenOS

Rev

Rev 4712 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4712 Rev 4728
1
/*
1
/*
2
 * Copyright (c) 2009 Lukas Mejdrech
2
 * Copyright (c) 2009 Lukas Mejdrech
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
8
 *
8
 *
9
 * - Redistributions of source code must retain the above copyright
9
 * - Redistributions of source code must retain the above copyright
10
 *   notice, this list of conditions and the following disclaimer.
10
 *   notice, this list of conditions and the following disclaimer.
11
 * - Redistributions in binary form must reproduce the above copyright
11
 * - Redistributions in binary form must reproduce the above copyright
12
 *   notice, this list of conditions and the following disclaimer in the
12
 *   notice, this list of conditions and the following disclaimer in the
13
 *   documentation and/or other materials provided with the distribution.
13
 *   documentation and/or other materials provided with the distribution.
14
 * - The name of the author may not be used to endorse or promote products
14
 * - The name of the author may not be used to endorse or promote products
15
 *   derived from this software without specific prior written permission.
15
 *   derived from this software without specific prior written permission.
16
 *
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup socket
29
/** @addtogroup socket
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
34
 *  Socket codes and definitions.
34
 *  Socket codes and definitions.
35
 *  This is a part of the network application library.
35
 *  This is a part of the network application library.
36
 */
36
 */
37
 
37
 
38
#ifndef __NET_SOCKET_CODES_H__
38
#ifndef __NET_SOCKET_CODES_H__
39
#define __NET_SOCKET_CODES_H__
39
#define __NET_SOCKET_CODES_H__
40
 
40
 
41
#include <sys/types.h>
41
#include <sys/types.h>
42
 
42
 
43
/** @name Address families definitions
43
/** @name Address families definitions
44
*/
44
 */
45
/*@{*/
45
/*@{*/
-
 
46
 
46
/** Unspecified address family.
47
/** Unspecified address family.
47
 */
48
 */
48
#define AF_UNSPEC   0
49
#define AF_UNSPEC   0
49
 
50
 
50
/** Unix domain sockets address family.
51
/** Unix domain sockets address family.
51
 */
52
 */
52
#define AF_UNIXL    1
53
#define AF_UNIXL    1
53
 
54
 
54
/** POSIX name for AF_UNIX address family.
55
/** POSIX name for AF_UNIX address family.
55
 */
56
 */
56
#define AF_LOCAL    1
57
#define AF_LOCAL    1
57
 
58
 
58
/** Internet IP Protocol address family.
59
/** Internet IP Protocol address family.
59
 */
60
 */
60
#define AF_INET     2
61
#define AF_INET     2
61
 
62
 
62
/** Amateur Radio AX.25 address family.
63
/** Amateur Radio AX.25 address family.
63
 */
64
 */
64
#define AF_AX25     3
65
#define AF_AX25     3
65
 
66
 
66
/** Novell IPX address family.
67
/** Novell IPX address family.
67
 */
68
 */
68
#define AF_IPX      4
69
#define AF_IPX      4
69
 
70
 
70
/** AppleTalk DDP address family.
71
/** AppleTalk DDP address family.
71
 */
72
 */
72
#define AF_APPLETALK    5
73
#define AF_APPLETALK    5
73
 
74
 
74
/** Amateur Radio NET/ROM address family.
75
/** Amateur Radio NET/ROM address family.
75
 */
76
 */
76
#define AF_NETROM   6
77
#define AF_NETROM   6
77
 
78
 
78
/** Multiprotocol bridge address family.
79
/** Multiprotocol bridge address family.
79
 */
80
 */
80
#define AF_BRIDGE   7
81
#define AF_BRIDGE   7
81
 
82
 
82
/** ATM PVCs address family.
83
/** ATM PVCs address family.
83
 */
84
 */
84
#define AF_ATMPVC   8
85
#define AF_ATMPVC   8
85
 
86
 
86
/** Reserved for X.25 project address family.
87
/** Reserved for X.25 project address family.
87
 */
88
 */
88
#define AF_X25      9
89
#define AF_X25      9
89
 
90
 
90
/** IP version 6 address family.
91
/** IP version 6 address family.
91
 */
92
 */
92
#define AF_INET6    10
93
#define AF_INET6    10
93
 
94
 
94
/** Amateur Radio X.25 PLP address family.
95
/** Amateur Radio X.25 PLP address family.
95
 */
96
 */
96
#define AF_ROSE     11
97
#define AF_ROSE     11
97
 
98
 
98
/** Reserved for DECnet project address family.
99
/** Reserved for DECnet project address family.
99
 */
100
 */
100
#define AF_DECnet   12
101
#define AF_DECnet   12
101
 
102
 
102
/** Reserved for 802.2LLC project address family.
103
/** Reserved for 802.2LLC project address family.
103
 */
104
 */
104
#define AF_NETBEUI  13
105
#define AF_NETBEUI  13
105
 
106
 
106
/** Security callback pseudo AF address family.
107
/** Security callback pseudo AF address family.
107
 */
108
 */
108
#define AF_SECURITY 14
109
#define AF_SECURITY 14
109
 
110
 
110
/** PF_KEY key management API address family.
111
/** PF_KEY key management API address family.
111
 */
112
 */
112
#define AF_KEY      15
113
#define AF_KEY      15
113
 
114
 
114
/** Alias to emulate 4.4BSD address family.
115
/** Alias to emulate 4.4BSD address family.
115
 */
116
 */
116
#define AF_NETLINK  16
117
#define AF_NETLINK  16
117
 
118
 
118
/** Packet family address family.
119
/** Packet family address family.
119
 */
120
 */
120
#define AF_PACKET   17
121
#define AF_PACKET   17
121
 
122
 
122
/** Ash address family.
123
/** Ash address family.
123
 */
124
 */
124
#define AF_ASH      18
125
#define AF_ASH      18
125
 
126
 
126
/** Acorn Econet address family.
127
/** Acorn Econet address family.
127
 */
128
 */
128
#define AF_ECONET   19
129
#define AF_ECONET   19
129
 
130
 
130
/** ATM SVCs address family.
131
/** ATM SVCs address family.
131
 */
132
 */
132
#define AF_ATMSVC   20
133
#define AF_ATMSVC   20
133
 
134
 
134
/** Linux SNA Project (nutters!) address family.
135
/** Linux SNA Project (nutters!) address family.
135
 */
136
 */
136
#define AF_SNA      22
137
#define AF_SNA      22
137
 
138
 
138
/** IRDA sockets address family.
139
/** IRDA sockets address family.
139
 */
140
 */
140
#define AF_IRDA     23
141
#define AF_IRDA     23
141
 
142
 
142
/** PPPoX sockets address family.
143
/** PPPoX sockets address family.
143
 */
144
 */
144
#define AF_PPPOX    24
145
#define AF_PPPOX    24
145
 
146
 
146
/** Wanpipe API Sockets address family.
147
/** Wanpipe API Sockets address family.
147
 */
148
 */
148
#define AF_WANPIPE  25
149
#define AF_WANPIPE  25
149
 
150
 
150
/** Linux LLC address family.
151
/** Linux LLC address family.
151
 */
152
 */
152
#define AF_LLC      26
153
#define AF_LLC      26
153
 
154
 
154
/** Controller Area Network address family.
155
/** Controller Area Network address family.
155
 */
156
 */
156
#define AF_CAN      29
157
#define AF_CAN      29
157
 
158
 
158
/** TIPC sockets address family.
159
/** TIPC sockets address family.
159
 */
160
 */
160
#define AF_TIPC     30
161
#define AF_TIPC     30
161
 
162
 
162
/** Bluetooth sockets address family.
163
/** Bluetooth sockets address family.
163
 */
164
 */
164
#define AF_BLUETOOTH    31
165
#define AF_BLUETOOTH    31
165
 
166
 
166
/** IUCV sockets address family.
167
/** IUCV sockets address family.
167
 */
168
 */
168
#define AF_IUCV     32
169
#define AF_IUCV     32
169
 
170
 
170
/** RxRPC sockets address family.
171
/** RxRPC sockets address family.
171
 */
172
 */
172
#define AF_RXRPC    33
173
#define AF_RXRPC    33
173
 
174
 
174
/** Maximum address family.
175
/** Maximum address family.
175
 */
176
 */
176
#define AF_MAX      34
177
#define AF_MAX      34
-
 
178
 
177
/*@}*/
179
/*@}*/
178
 
180
 
179
/** @name Protocol families definitions
181
/** @name Protocol families definitions
180
 *  Same as address families.
182
 *  Same as address families.
181
 */
183
 */
182
/*@{*/
184
/*@{*/
-
 
185
 
183
/** Unspecified protocol family.
186
/** Unspecified protocol family.
184
 */
187
 */
185
#define PF_UNSPEC   AF_UNSPEC
188
#define PF_UNSPEC   AF_UNSPEC
186
 
189
 
187
/** Unix domain sockets protocol family.
190
/** Unix domain sockets protocol family.
188
 */
191
 */
189
#define PF_UNIXL    AF_UNIXL
192
#define PF_UNIXL    AF_UNIXL
190
 
193
 
191
/** POSIX name for AF_UNIX protocol family.
194
/** POSIX name for AF_UNIX protocol family.
192
 */
195
 */
193
#define PF_LOCAL    AF_LOCAL
196
#define PF_LOCAL    AF_LOCAL
194
 
197
 
195
/** Internet IP Protocol protocol family.
198
/** Internet IP Protocol protocol family.
196
 */
199
 */
197
#define PF_INET     AF_INET
200
#define PF_INET     AF_INET
198
 
201
 
199
/** Amateur Radio AX.25 protocol family.
202
/** Amateur Radio AX.25 protocol family.
200
 */
203
 */
201
#define PF_AX25     AF_AX25
204
#define PF_AX25     AF_AX25
202
 
205
 
203
/** Novell IPX protocol family.
206
/** Novell IPX protocol family.
204
 */
207
 */
205
#define PF_IPX      AF_IPX
208
#define PF_IPX      AF_IPX
206
 
209
 
207
/** AppleTalk DDP protocol family.
210
/** AppleTalk DDP protocol family.
208
 */
211
 */
209
#define PF_APPLETALK    AF_APPLETALK
212
#define PF_APPLETALK    AF_APPLETALK
210
 
213
 
211
/** Amateur Radio NET/ROM protocol family.
214
/** Amateur Radio NET/ROM protocol family.
212
 */
215
 */
213
#define PF_NETROM   AF_NETROM
216
#define PF_NETROM   AF_NETROM
214
 
217
 
215
/** Multiprotocol bridge protocol family.
218
/** Multiprotocol bridge protocol family.
216
 */
219
 */
217
#define PF_BRIDGE   AF_BRIDGE
220
#define PF_BRIDGE   AF_BRIDGE
218
 
221
 
219
/** ATM PVCs protocol family.
222
/** ATM PVCs protocol family.
220
 */
223
 */
221
#define PF_ATMPVC   AF_ATMPVC
224
#define PF_ATMPVC   AF_ATMPVC
222
 
225
 
223
/** Reserved for X.25 project protocol family.
226
/** Reserved for X.25 project protocol family.
224
 */
227
 */
225
#define PF_X25      AF_X25
228
#define PF_X25      AF_X25
226
 
229
 
227
/** IP version 6 protocol family.
230
/** IP version 6 protocol family.
228
 */
231
 */
229
#define PF_INET6    AF_INET6
232
#define PF_INET6    AF_INET6
230
 
233
 
231
/** Amateur Radio X.25 PLP protocol family.
234
/** Amateur Radio X.25 PLP protocol family.
232
 */
235
 */
233
#define PF_ROSE     AF_ROSE
236
#define PF_ROSE     AF_ROSE
234
 
237
 
235
/** Reserved for DECnet project protocol family.
238
/** Reserved for DECnet project protocol family.
236
 */
239
 */
237
#define PF_DECnet   AF_DECnet
240
#define PF_DECnet   AF_DECnet
238
 
241
 
239
/** Reserved for 802.2LLC project protocol family.
242
/** Reserved for 802.2LLC project protocol family.
240
 */
243
 */
241
#define PF_NETBEUI  AF_NETBEUI
244
#define PF_NETBEUI  AF_NETBEUI
242
 
245
 
243
/** Security callback pseudo AF protocol family.
246
/** Security callback pseudo AF protocol family.
244
 */
247
 */
245
#define PF_SECURITY AF_SECURITY
248
#define PF_SECURITY AF_SECURITY
246
 
249
 
247
/** PF_KEY key management API protocol family.
250
/** PF_KEY key management API protocol family.
248
 */
251
 */
249
#define PF_KEY      AF_KEY
252
#define PF_KEY      AF_KEY
250
 
253
 
251
/** Alias to emulate 4.4BSD protocol family.
254
/** Alias to emulate 4.4BSD protocol family.
252
 */
255
 */
253
#define PF_NETLINK  AF_NETLINK
256
#define PF_NETLINK  AF_NETLINK
254
 
257
 
255
/** Packet family protocol family.
258
/** Packet family protocol family.
256
 */
259
 */
257
#define PF_PACKET   AF_PACKET
260
#define PF_PACKET   AF_PACKET
258
 
261
 
259
/** Ash protocol family.
262
/** Ash protocol family.
260
 */
263
 */
261
#define PF_ASH      AF_ASH
264
#define PF_ASH      AF_ASH
262
 
265
 
263
/** Acorn Econet protocol family.
266
/** Acorn Econet protocol family.
264
 */
267
 */
265
#define PF_ECONET   AF_ECONET
268
#define PF_ECONET   AF_ECONET
266
 
269
 
267
/** ATM SVCs protocol family.
270
/** ATM SVCs protocol family.
268
 */
271
 */
269
#define PF_ATMSVC   AF_ATMSVC
272
#define PF_ATMSVC   AF_ATMSVC
270
 
273
 
271
/** Linux SNA Project (nutters!) protocol family.
274
/** Linux SNA Project (nutters!) protocol family.
272
 */
275
 */
273
#define PF_SNA      AF_SNA
276
#define PF_SNA      AF_SNA
274
 
277
 
275
/** IRDA sockets protocol family.
278
/** IRDA sockets protocol family.
276
 */
279
 */
277
#define PF_IRDA     AF_IRDA
280
#define PF_IRDA     AF_IRDA
278
 
281
 
279
/** PPPoX sockets protocol family.
282
/** PPPoX sockets protocol family.
280
 */
283
 */
281
#define PF_PPPOX    AF_PPPOX
284
#define PF_PPPOX    AF_PPPOX
282
 
285
 
283
/** Wanpipe API Sockets protocol family.
286
/** Wanpipe API Sockets protocol family.
284
 */
287
 */
285
#define PF_WANPIPE  AF_WANPIPE
288
#define PF_WANPIPE  AF_WANPIPE
286
 
289
 
287
/** Linux LLC protocol family.
290
/** Linux LLC protocol family.
288
 */
291
 */
289
#define PF_LLC      AF_LLC
292
#define PF_LLC      AF_LLC
290
 
293
 
291
/** Controller Area Network protocol family.
294
/** Controller Area Network protocol family.
292
 */
295
 */
293
#define PF_CAN      AF_CAN
296
#define PF_CAN      AF_CAN
294
 
297
 
295
/** TIPC sockets protocol family.
298
/** TIPC sockets protocol family.
296
 */
299
 */
297
#define PF_TIPC     AF_TIPC
300
#define PF_TIPC     AF_TIPC
298
 
301
 
299
/** Bluetooth sockets protocol family.
302
/** Bluetooth sockets protocol family.
300
 */
303
 */
301
#define PF_BLUETOOTH    AF_BLUETOOTH
304
#define PF_BLUETOOTH    AF_BLUETOOTH
302
 
305
 
303
/** IUCV sockets protocol family.
306
/** IUCV sockets protocol family.
304
 */
307
 */
305
#define PF_IUCV     AF_IUCV
308
#define PF_IUCV     AF_IUCV
306
 
309
 
307
/** RxRPC sockets protocol family.
310
/** RxRPC sockets protocol family.
308
 */
311
 */
309
#define PF_RXRPC    AF_RXRPC
312
#define PF_RXRPC    AF_RXRPC
310
 
313
 
311
/** Maximum protocol family.
314
/** Maximum protocol family.
312
 */
315
 */
313
#define PF_MAX      AF_MAX
316
#define PF_MAX      AF_MAX
-
 
317
 
314
/*@}*/
318
/*@}*/
315
 
319
 
316
/** @name Socket option levels definitions
320
/** @name Socket option levels definitions
317
 *  Thanks to BSD these must match IPPROTO_xxx
321
 *  Thanks to BSD these must match IPPROTO_xxx
318
 */
322
 */
319
/*@{*/
323
/*@{*/
320
 
324
 
321
/** IP socket option level.
325
/** IP socket option level.
322
 */
326
 */
323
#define SOL_IP      0
327
#define SOL_IP      0
324
 
328
 
325
/** ICMP socket option level.
329
/** ICMP socket option level.
326
 */
330
 */
327
#define SOL_ICMP    1
331
#define SOL_ICMP    1
328
 
332
 
329
/** TCP socket option level.
333
/** TCP socket option level.
330
 */
334
 */
331
#define SOL_TCP     6
335
#define SOL_TCP     6
332
 
336
 
333
/** UDP socket option level.
337
/** UDP socket option level.
334
 */
338
 */
335
#define SOL_UDP     17
339
#define SOL_UDP     17
336
 
340
 
337
/** IPV socket option level.
341
/** IPV socket option level.
338
 */
342
 */
339
#define SOL_IPV6    41
343
#define SOL_IPV6    41
340
 
344
 
341
/** ICMPV socket option level.
345
/** ICMPV socket option level.
342
 */
346
 */
343
#define SOL_ICMPV6  58
347
#define SOL_ICMPV6  58
344
 
348
 
345
/** SCTP socket option level.
349
/** SCTP socket option level.
346
 */
350
 */
347
#define SOL_SCTP    132
351
#define SOL_SCTP    132
348
 
352
 
349
/** UDP-Lite (RFC 3828) socket option level.
353
/** UDP-Lite (RFC 3828) socket option level.
350
 */
354
 */
351
#define SOL_UDPLITE 136
355
#define SOL_UDPLITE 136
352
 
356
 
353
/** RAW socket option level.
357
/** RAW socket option level.
354
 */
358
 */
355
#define SOL_RAW     255
359
#define SOL_RAW     255
356
 
360
 
357
/** IPX socket option level.
361
/** IPX socket option level.
358
 */
362
 */
359
#define SOL_IPX     256
363
#define SOL_IPX     256
360
 
364
 
361
/** AX socket option level.
365
/** AX socket option level.
362
 */
366
 */
363
#define SOL_AX25    257
367
#define SOL_AX25    257
364
 
368
 
365
/** ATALK socket option level.
369
/** ATALK socket option level.
366
 */
370
 */
367
#define SOL_ATALK   258
371
#define SOL_ATALK   258
368
 
372
 
369
/** NETROM socket option level.
373
/** NETROM socket option level.
370
 */
374
 */
371
#define SOL_NETROM  259
375
#define SOL_NETROM  259
372
 
376
 
373
/** ROSE socket option level.
377
/** ROSE socket option level.
374
 */
378
 */
375
#define SOL_ROSE    260
379
#define SOL_ROSE    260
376
 
380
 
377
/** DECNET socket option level.
381
/** DECNET socket option level.
378
 */
382
 */
379
#define SOL_DECNET  261
383
#define SOL_DECNET  261
380
 
384
 
381
/** X25 socket option level.
385
/** X25 socket option level.
382
 */
386
 */
383
#define SOL_X25     262
387
#define SOL_X25     262
384
 
388
 
385
/** PACKET socket option level.
389
/** PACKET socket option level.
386
 */
390
 */
387
#define SOL_PACKET  263
391
#define SOL_PACKET  263
388
 
392
 
389
/** ATM layer (cell level) socket option level.
393
/** ATM layer (cell level) socket option level.
390
 */
394
 */
391
#define SOL_ATM     264
395
#define SOL_ATM     264
392
 
396
 
393
/** ATM Adaption Layer (packet level) socket option level.
397
/** ATM Adaption Layer (packet level) socket option level.
394
 */
398
 */
395
#define SOL_AAL     265
399
#define SOL_AAL     265
396
 
400
 
397
/** IRDA socket option level.
401
/** IRDA socket option level.
398
 */
402
 */
399
#define SOL_IRDA    266
403
#define SOL_IRDA    266
400
 
404
 
401
/** NETBEUI socket option level.
405
/** NETBEUI socket option level.
402
 */
406
 */
403
#define SOL_NETBEUI 267
407
#define SOL_NETBEUI 267
404
 
408
 
405
/** LLC socket option level.
409
/** LLC socket option level.
406
 */
410
 */
407
#define SOL_LLC     268
411
#define SOL_LLC     268
408
 
412
 
409
/** DCCP socket option level.
413
/** DCCP socket option level.
410
 */
414
 */
411
#define SOL_DCCP    269
415
#define SOL_DCCP    269
412
 
416
 
413
/** NETLINK socket option level.
417
/** NETLINK socket option level.
414
 */
418
 */
415
#define SOL_NETLINK 270
419
#define SOL_NETLINK 270
416
 
420
 
417
/** TIPC socket option level.
421
/** TIPC socket option level.
418
 */
422
 */
419
#define SOL_TIPC    271
423
#define SOL_TIPC    271
420
 
424
 
421
/** RXRPC socket option level.
425
/** RXRPC socket option level.
422
 */
426
 */
423
#define SOL_RXRPC   272
427
#define SOL_RXRPC   272
424
 
428
 
425
/** PPPOL socket option level.
429
/** PPPOL socket option level.
426
 */
430
 */
427
#define SOL_PPPOL2TP    273
431
#define SOL_PPPOL2TP    273
428
 
432
 
429
/** BLUETOOTH socket option level.
433
/** BLUETOOTH socket option level.
430
 */
434
 */
431
#define SOL_BLUETOOTH   274
435
#define SOL_BLUETOOTH   274
432
 
436
 
433
/*@}*/
437
/*@}*/
434
 
438
 
435
//
-
 
436
/* * IPX options.
-
 
437
 */
-
 
438
//#define IPX_TYPE  1
-
 
439
 
-
 
440
/** Socket types.
439
/** Socket types.
441
 */
440
 */
442
typedef enum sock_type{
441
typedef enum sock_type{
443
    /** Stream (connection oriented) socket.
442
    /** Stream (connection oriented) socket.
444
     */
443
     */
445
    SOCK_STREAM = 1,
444
    SOCK_STREAM = 1,
446
    /** Datagram (connectionless oriented) socket.
445
    /** Datagram (connectionless oriented) socket.
447
     */
446
     */
448
    SOCK_DGRAM  = 2,
447
    SOCK_DGRAM  = 2,
449
    /** Raw socket.
448
    /** Raw socket.
450
     */
449
     */
451
    SOCK_RAW    = 3
450
    SOCK_RAW    = 3
452
} sock_type_t;
451
} sock_type_t;
453
 
452
 
454
/** Type definition of the socket length.
453
/** Type definition of the socket length.
455
 */
454
 */
456
typedef int32_t socklen_t;
455
typedef int32_t socklen_t;
457
 
456
 
458
#endif
457
#endif
459
 
458
 
460
/** @}
459
/** @}
461
 */
460
 */
462
 
461