Subversion Repositories Kolibri OS

Rev

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

Rev 2390 Rev 2600
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: 2390 $
17
$Revision: 2600 $
Line 18... Line 18...
18
 
18
 
19
macro   TCP_checksum IP1, IP2 {
19
macro   TCP_checksum IP1, IP2 {
Line 311... Line 311...
311
 
311
 
312
 
312
 
313
;-------------------------
313
;-------------------------
314
; TCP_respond.segment:
-
 
315
;
314
; TCP_respond.segment:
316
;  IN:  ebx = ptr to driver
315
;
317
;       edx = segment ptr (a previously received segment)
316
;  IN:  edx = segment ptr (a previously received segment)
Line 318... Line 317...
318
;       edi = ptr to dest and src IPv4 addresses
317
;       edi = ptr to dest and src IPv4 addresses
319
;        cl = flags
318
;        cl = flags
Line 324... Line 323...
324
        DEBUGF  1,"TCP_respond_segment\n"
323
        DEBUGF  1,"TCP_respond_segment\n"
Line 325... Line 324...
325
 
324
 
326
;---------------------
325
;---------------------
Line 327... Line 326...
327
; Create the IP packet
326
; Create the IP packet
328
 
327
 
329
        push    cx edx ebx
328
        push    cx edx
330
        mov     ebx, [edi + 4]
329
        mov     ebx, [edi + 4]
331
        mov     eax, [edi]
330
        mov     eax, [edi]
332
        mov     ecx, sizeof.TCP_header
331
        mov     ecx, sizeof.TCP_header
333
        mov     di , IP_PROTO_TCP shl 8 + 128
332
        mov     di , IP_PROTO_TCP shl 8 + 128
334
        call    IPv4_output
333
        call    IPv4_output
Line 335... Line 334...
335
        jz      .error
334
        jz      .error
Line 336... Line 335...
336
        pop     ebx esi cx
335
        pop     esi cx
337
 
336