Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2881 → Rev 2882

/kernel/branches/net/network/ARP.inc
511,6 → 511,7
ret
 
.invalid:
DEBUGF 1,"ARP entry has no valid mapping!\n"
mov eax, -1
ret
 
/kernel/branches/net/network/socket.inc
1525,8 → 1525,6
call mutex_lock
popa
 
DEBUGF 1, "SOCKET_free: freeing socket..\n"
 
cmp [eax + SOCKET.Domain], AF_INET4
jnz .no_tcp
 
/kernel/branches/net/network/tcp_input.inc
815,7 → 815,7
test [edx + TCP_header.Flags], TH_RST
jz .rst_skip
 
DEBUGF 1,"Got an RST flag"
DEBUGF 1,"Got an RST flag\n"
 
mov eax, [ebx + TCP_SOCKET.t_state]
shl eax, 2
835,21 → 835,21
dd .rst_close ;TCPS_TIMED_WAIT
 
.econnrefused:
DEBUGF 1,"Connection refused"
DEBUGF 1,"Connection refused\n"
 
mov [ebx + SOCKET.errorcode], ECONNREFUSED
jmp .close
 
.econnreset:
DEBUGF 1,"Connection reset"
DEBUGF 1,"Connection reset\n"
 
mov [ebx + SOCKET.errorcode], ECONNRESET
 
.close:
DEBUGF 1,"Closing connection"
DEBUGF 1,"Closing connection\n"
 
mov [ebx + TCP_SOCKET.t_state], TCPS_CLOSED
;;; TODO: update stats
;;; TODO: update stats (tcp drops)
mov eax, ebx
call TCP_close
jmp .drop
1200,7 → 1200,7
 
 
mov eax, ebx
call TCP_close
call TCP_disconnect
jmp .drop
 
 
/kernel/branches/net/network/tcp_subr.inc
183,10 → 183,8
 
;;; TODO: update RTT and mean deviation
;;; TODO: update slow start threshold
;;; TODO: release connection resources
 
call SOCKET_is_disconnected
call SOCKET_free
 
ret