Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7973 → Rev 7974

/kernel/trunk/network/tcp_subr.inc
1,6 → 1,6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;;
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; Part of the TCP/IP network stack for KolibriOS ;;
102,6 → 102,8
mov [socket + TCP_SOCKET.SND_CWND], TCP_max_win shl TCP_max_winshift
mov [socket + TCP_SOCKET.SND_SSTHRESH], TCP_max_win shl TCP_max_winshift
 
mov [socket + TCP_SOCKET.RCV_SCALE], 0
mov [socket + TCP_SOCKET.SND_SCALE], 0
 
}
 
139,8 → 141,10
; ;
;-----------------------------------------------------------------;
align 4
tcp_drop: ; FIXME CHECKME TODO
tcp_drop:
 
;;; TODO: check if error code is "Connection timed out' and handle accordingly
 
DEBUGF DEBUG_NETWORK_VERBOSE, "tcp_drop: %x\n", eax
 
cmp [eax + TCP_SOCKET.t_state], TCPS_SYN_RECEIVED
152,21 → 156,18
call tcp_output
pop eax
 
;;; TODO: update stats
inc [TCPS_drops]
 
mov [eax + SOCKET.errorcode], ebx
jmp tcp_close
 
.no_syn_received:
inc [TCPS_conndrops]
 
;;; TODO: update stats
mov [eax + SOCKET.errorcode], ebx
jmp tcp_close
 
;;; TODO: check if error code is "Connection timed out' and handle accordingly
 
; mov [eax + SOCKET.errorcode], ebx
 
 
 
 
;-----------------------------------------------------------------;
; ;
; tcp_disconnect ;