Subversion Repositories Kolibri OS

Rev

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

Rev 7680 Rev 8024
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2020. 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
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
6
;;  Part of the TCP/IP network stack for KolibriOS                 ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
8
;;   Written by hidnplayr@kolibrios.org                            ;;
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: 7680 $
17
$Revision: 8024 $
Line 18... Line 18...
18
 
18
 
19
TCP_BIT_SENDALOT        = 1 shl 0
19
TCP_BIT_SENDALOT        = 1 shl 0
Line 229... Line 229...
229
        push    ecx
229
        push    ecx
230
        mov     cl, [eax + TCP_SOCKET.RCV_SCALE]
230
        mov     cl, [eax + TCP_SOCKET.RCV_SCALE]
231
        mov     ebx, TCP_max_win
231
        mov     ebx, TCP_max_win
232
        shl     ebx, cl
232
        shl     ebx, cl
233
        pop     ecx
233
        pop     ecx
-
 
234
        sub     ebx, [eax + TCP_SOCKET.RCV_ADV]
-
 
235
        add     ebx, [eax + TCP_SOCKET.RCV_NXT]
Line 234... Line 236...
234
 
236
 
235
        cmp     ebx, ecx
237
        cmp     ebx, ecx
236
        jb      @f
238
        jb      @f
237
        mov     ebx, ecx
239
        mov     ebx, ecx
238
       @@:
-
 
239
        sub     ebx, [eax + TCP_SOCKET.RCV_ADV]
-
 
Line 240... Line 240...
240
        add     ebx, [eax + TCP_SOCKET.RCV_NXT]
240
       @@:
Line 241... Line 241...
241
 
241
 
242
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP_output: we can increase window by %d bytes\n", ebx
242
        DEBUGF  DEBUG_NETWORK_VERBOSE, "TCP_output: we can increase window by %d bytes\n", ebx