Subversion Repositories Kolibri OS

Rev

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

Rev 6913 Rev 7098
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: 6913 $
17
$Revision: 7098 $
18
 
18
 
19
align 4
19
align 4
20
iglobal
20
iglobal
Line 301... Line 301...
301
        stosd
301
        stosd
302
        mov     al, 0x50        ; Dataoffset: 20 bytes (TCP_header.DataOffset)
302
        mov     al, 0x50        ; Dataoffset: 20 bytes (TCP_header.DataOffset)
303
        stosb
303
        stosb
304
        mov     al, cl
304
        mov     al, cl
305
        stosb
305
        stosb
-
 
306
        mov     eax, SOCKET_BUFFER_SIZE
-
 
307
        sub     eax, [esi + STREAM_SOCKET.rcv.size]
-
 
308
        cmp     eax, TCP_max_win
-
 
309
        jbe     .lessthanmax
-
 
310
        mov     eax, TCP_max_win
-
 
311
.lessthanmax:
306
        mov     eax, [esi + TCP_SOCKET.RCV_WND]
312
        mov     cl, [esi + TCP_SOCKET.RCV_SCALE]
-
 
313
        shr     eax, cl
-
 
314
 
307
        xchg    al, ah
315
        xchg    al, ah
308
        stosw                   ; window
316
        stosw                   ; window
309
        xor     eax, eax
317
        xor     eax, eax
310
        stosd                   ; checksum + urgentpointer
318
        stosd                   ; checksum + urgentpointer