Rev 5976 | Rev 6916 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5976 | Rev 6011 | ||
---|---|---|---|
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: 5976 $ |
17 | $Revision: 6011 $ |
18 | 18 | ||
19 | ; Socket states |
19 | ; Socket states |
20 | TCPS_CLOSED = 0 |
20 | TCPS_CLOSED = 0 |
Line 204... | Line 204... | ||
204 | ;-----------------------------------------------------------------; |
204 | ;-----------------------------------------------------------------; |
205 | ; ; |
205 | ; ; |
206 | ; TCP_init: Resets all TCP variables. ; |
206 | ; TCP_init: Resets all TCP variables. ; |
207 | ; ; |
207 | ; ; |
208 | ;-----------------------------------------------------------------; |
208 | ;-----------------------------------------------------------------; |
209 | macro TCP_init { |
209 | macro tcp_init { |
Line 210... | Line 210... | ||
210 | 210 | ||
211 | xor eax, eax |
211 | xor eax, eax |
212 | mov edi, TCP_segments_tx |
212 | mov edi, TCP_segments_tx |
213 | mov ecx, (6*NET_DEVICES_MAX) |
213 | mov ecx, (6*NET_DEVICES_MAX) |
Line 217... | Line 217... | ||
217 | mov [TCP_sequence_num], eax |
217 | mov [TCP_sequence_num], eax |
Line 218... | Line 218... | ||
218 | 218 | ||
Line 219... | Line 219... | ||
219 | init_queue TCP_queue |
219 | init_queue TCP_queue |
220 | 220 | ||
221 | movi ebx, 1 |
221 | movi ebx, 1 |
222 | mov ecx, TCP_process_input |
222 | mov ecx, tcp_process_input |
223 | call new_sys_threads |
223 | call new_sys_threads |
224 | test eax, eax |
224 | test eax, eax |
225 | jns @f |
225 | jns @f |
Line 226... | Line 226... | ||
226 | DEBUGF DEBUG_NETWORK_ERROR,'K : cannot create kernel thread for TCP input, error %d\n', eax |
226 | DEBUGF DEBUG_NETWORK_ERROR,'K : cannot create kernel thread for TCP input, error %d\n', eax |
227 | @@: |
227 | @@: |
228 | 228 | ||
229 | movi ebx, 1 |
229 | movi ebx, 1 |
230 | mov ecx, TCP_timer_640ms |
230 | mov ecx, tcp_timer_640ms |
231 | call new_sys_threads |
231 | call new_sys_threads |
232 | test eax, eax |
232 | test eax, eax |
Line 244... | Line 244... | ||
244 | include 'tcp_output.inc' |
244 | include 'tcp_output.inc' |
Line 245... | Line 245... | ||
245 | 245 | ||
246 | 246 | ||
247 | ;------------------------------------------------------------------; |
247 | ;------------------------------------------------------------------; |
248 | ; ; |
248 | ; ; |
249 | ; TCP_api: This function is called by system function 76 ; |
249 | ; tcp_api: Part of system function 76 ; |
250 | ; ; |
250 | ; ; |
251 | ; IN: bl = subfunction number ; |
251 | ; IN: bl = subfunction number ; |
252 | ; bh = device number ; |
252 | ; bh = device number ; |
253 | ; ecx, edx, .. depends on subfunction ; |
253 | ; ecx, edx, .. depends on subfunction ; |
254 | ; ; |
254 | ; ; |
255 | ; OUT: depends on subfunction ; |
255 | ; OUT: depends on subfunction ; |
256 | ; ; |
256 | ; ; |
257 | ;------------------------------------------------------------------; |
257 | ;------------------------------------------------------------------; |
Line 258... | Line 258... | ||
258 | align 4 |
258 | align 4 |
259 | TCP_api: |
259 | tcp_api: |
Line 260... | Line 260... | ||
260 | 260 |