Subversion Repositories Kolibri OS

Rev

Rev 3555 | Rev 3725 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3555 Rev 3626
Line 12... Line 12...
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
12
;;          GNU GENERAL PUBLIC LICENSE                             ;;
13
;;             Version 2, June 1991                                ;;
13
;;             Version 2, June 1991                                ;;
14
;;                                                                 ;;
14
;;                                                                 ;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
$Revision: 3555 $
17
$Revision: 3626 $
18
 
18
 
19
; Socket states
19
; Socket states
20
TCPS_CLOSED             = 0
20
TCPS_CLOSED             = 0
Line 127... Line 127...
127
 
127
 
Line 128... Line 128...
128
ends
128
ends
129
 
129
 
130
align 4
130
align 4
131
uglobal
131
uglobal
132
        TCP_segments_tx         rd MAX_NET_DEVICES
132
        TCP_segments_tx         rd NET_DEVICES_MAX
133
        TCP_segments_rx         rd MAX_NET_DEVICES
133
        TCP_segments_rx         rd NET_DEVICES_MAX
134
        TCP_segments_missed     rd MAX_NET_DEVICES
134
        TCP_segments_missed     rd NET_DEVICES_MAX
135
        TCP_segments_dumped     rd MAX_NET_DEVICES
135
        TCP_segments_dumped     rd NET_DEVICES_MAX
136
;        TCP_bytes_rx            rq MAX_NET_DEVICES
136
;        TCP_bytes_rx            rq NET_DEVICES_MAX
137
;        TCP_bytes_tx            rq MAX_NET_DEVICES
137
;        TCP_bytes_tx            rq NET_DEVICES_MAX
138
        TCP_sequence_num        dd ?
138
        TCP_sequence_num        dd ?
139
        TCP_queue               rd TCP_QUEUE_SIZE*sizeof.TCP_queue_entry/4
139
        TCP_queue               rd TCP_QUEUE_SIZE*sizeof.TCP_queue_entry/4
Line 150... Line 150...
150
;-----------------------------------------------------------------
150
;-----------------------------------------------------------------
151
macro   TCP_init {
151
macro   TCP_init {
Line 152... Line 152...
152
 
152
 
153
        xor     eax, eax
153
        xor     eax, eax
154
        mov     edi, TCP_segments_tx
154
        mov     edi, TCP_segments_tx
155
        mov     ecx, (6*MAX_NET_DEVICES)
155
        mov     ecx, (6*NET_DEVICES_MAX)
Line 156... Line 156...
156
        rep     stosd
156
        rep     stosd
157
 
157
 
Line 158... Line 158...
158
        pseudo_random   eax
158
        pseudo_random   eax
Line 159... Line -...
159
        mov     [TCP_sequence_num], eax
-
 
160
 
159
        mov     [TCP_sequence_num], eax
161
        init_queue TCP_queue
160
 
162
 
161
        init_queue TCP_queue
Line 163... Line 162...
163
        push    1
162