Rev 7680 | Rev 8026 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7680 | Rev 7974 | ||
---|---|---|---|
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: 7974 $ |
18 | 18 | ||
19 | align 4 |
19 | align 4 |
20 | iglobal |
20 | iglobal |
Line 100... | Line 100... | ||
100 | ;;; TODO: TCP_time_rangeset |
100 | ;;; TODO: TCP_time_rangeset |
Line 101... | Line 101... | ||
101 | 101 | ||
102 | mov [socket + TCP_SOCKET.SND_CWND], TCP_max_win shl TCP_max_winshift |
102 | mov [socket + TCP_SOCKET.SND_CWND], TCP_max_win shl TCP_max_winshift |
Line -... | Line 103... | ||
- | 103 | mov [socket + TCP_SOCKET.SND_SSTHRESH], TCP_max_win shl TCP_max_winshift |
|
- | 104 | ||
Line 103... | Line 105... | ||
103 | mov [socket + TCP_SOCKET.SND_SSTHRESH], TCP_max_win shl TCP_max_winshift |
105 | mov [socket + TCP_SOCKET.RCV_SCALE], 0 |
Line 104... | Line 106... | ||
104 | 106 | mov [socket + TCP_SOCKET.SND_SCALE], 0 |
|
Line 137... | Line 139... | ||
137 | ; ; |
139 | ; ; |
138 | ; OUT: eax = socket ptr ; |
140 | ; OUT: eax = socket ptr ; |
139 | ; ; |
141 | ; ; |
140 | ;-----------------------------------------------------------------; |
142 | ;-----------------------------------------------------------------; |
141 | align 4 |
143 | align 4 |
142 | tcp_drop: ; FIXME CHECKME TODO |
144 | tcp_drop: |
- | 145 | ||
- | 146 | ;;; TODO: check if error code is "Connection timed out' and handle accordingly |
|
Line 143... | Line 147... | ||
143 | 147 | ||
Line 144... | Line 148... | ||
144 | DEBUGF DEBUG_NETWORK_VERBOSE, "tcp_drop: %x\n", eax |
148 | DEBUGF DEBUG_NETWORK_VERBOSE, "tcp_drop: %x\n", eax |
145 | 149 | ||
Line 150... | Line 154... | ||
150 | 154 | ||
151 | push eax |
155 | push eax |
152 | call tcp_output |
156 | call tcp_output |
Line 153... | Line 157... | ||
153 | pop eax |
157 | pop eax |
Line -... | Line 158... | ||
- | 158 | ||
154 | 159 | inc [TCPS_drops] |
|
Line 155... | Line 160... | ||
155 | ;;; TODO: update stats |
160 | |
- | 161 | mov [eax + SOCKET.errorcode], ebx |
|
Line 156... | Line -... | ||
156 | - | ||
157 | jmp tcp_close |
- | |
158 | - | ||
159 | .no_syn_received: |
- | |
160 | 162 | jmp tcp_close |
|
161 | ;;; TODO: update stats |
- | |
162 | - | ||
- | 163 | ||
Line 163... | Line 164... | ||
163 | ;;; TODO: check if error code is "Connection timed out' and handle accordingly |
164 | .no_syn_received: |
164 | 165 | inc [TCPS_conndrops] |
|
165 | ; mov [eax + SOCKET.errorcode], ebx |
166 |