Rev 1733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1733 | Rev 1763 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2010. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;; STACK.INC ;; |
6 | ;; STACK.INC ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; BASIC TCP/IP stack for KolibriOS ;; |
8 | ;; TCP/IP stack for KolibriOS ;; |
9 | ;; ;; |
9 | ;; ;; |
10 | ;; Written by hidnplayr@kolibrios.org ;; |
10 | ;; Written by hidnplayr@kolibrios.org ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;; based on the work of Mike Hibbett, mikeh@oceanfree.net ;; |
12 | ;; Some parts of code are based on the work of: ;; |
- | 13 | ;; Mike Hibbett (menuetos network stack) ;; |
|
- | 14 | ;; Eugen Brasoveanu (solar os network stack and drivers) ;; |
|
- | 15 | ;; mike.dld (kolibrios socket code) ;; |
|
13 | ;; but also Paolo Franchetti ;; |
16 | ;; ;; |
- | 17 | ;; TCP part is based on 4.4BSD ;; |
|
14 | ;; ;; |
18 | ;; ;; |
15 | ;; GNU GENERAL PUBLIC LICENSE ;; |
19 | ;; GNU GENERAL PUBLIC LICENSE ;; |
16 | ;; Version 2, June 1991 ;; |
20 | ;; Version 2, June 1991 ;; |
17 | ;; ;; |
21 | ;; ;; |
18 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 19... | Line 23... | ||
19 | 23 | ||
20 | $Revision: 1733 $ |
- | |
21 | - | ||
Line 22... | Line 24... | ||
22 | __DEBUG_LEVEL_OLD__ equ __DEBUG_LEVEL__ |
24 | $Revision: 1763 $ |
- | 25 | ||
Line 23... | Line 26... | ||
23 | 26 | __DEBUG_LEVEL_OLD__ equ __DEBUG_LEVEL__ ; use seperate debug level for network part of kernel |
|
24 | __DEBUG_LEVEL__ equ 1 ; this sets the debug level for network part of kernel |
27 | __DEBUG_LEVEL__ equ 1 |
25 | 28 | ||
26 | uglobal |
29 | uglobal |
Line 41... | Line 44... | ||
41 | 44 | ||
42 | ;Protocol family |
45 | ;Protocol family |
43 | AF_UNSPEC equ 0 |
46 | AF_UNSPEC equ 0 |
44 | AF_UNIX equ 1 |
47 | AF_UNIX equ 1 |
45 | AF_INET4 equ 2 |
- | |
46 | ;AF_AX25 equ 3 |
- | |
47 | ;AF_IPX equ 4 |
- | |
48 | ;AF_APPLETALK equ 5 |
- | |
49 | ;AF_NETROM equ 6 |
- | |
50 | ;AF_BRIDGE equ 7 |
- | |
51 | ;AF_AAL5 equ 8 |
- | |
52 | ;AF_X25 equ 9 |
48 | AF_INET4 equ 2 |
Line 53... | Line 49... | ||
53 | AF_INET6 equ 10 |
49 | AF_INET6 equ 10 |
54 | 50 | ||
55 | ; Internet protocol numbers |
51 | ; Internet protocol numbers |
Line 98... | Line 94... | ||
98 | .bytes_tx dq ? ; Statistics, updated by the driver |
94 | .bytes_tx dq ? ; Statistics, updated by the driver |
99 | .bytes_rx dq ? ; |
95 | .bytes_rx dq ? ; |
100 | .packets_tx dd ? ; |
96 | .packets_tx dd ? ; |
101 | .packets_rx dd ? ; |
97 | .packets_rx dd ? ; |
Line 102... | Line 98... | ||
102 | 98 | ||
Line 103... | Line 99... | ||
103 | ; .chksum dd ? ; bitmask stating available checksum routines on hardware |
99 | ; .hwacc dd ? ; bitmask stating available hardware accelerations (offload engines) |
Line 104... | Line 100... | ||
104 | 100 |