Small update in TCP_input

git-svn-id: svn://kolibrios.org@1772 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2011-01-28 16:16:31 +00:00
parent e43ff53a29
commit 2861c164de

View File

@ -1101,7 +1101,7 @@ align 4
@@:
;; TODO: use zero flag as 'ourfinisacked'
@ -1126,22 +1126,43 @@ align 4
dd .ack_tw ;TCB_TIMED_WAIT
.ack_fw1: ; 963
.ack_fw1:
jz .ack_processed
test [ebx + SOCKET.state], SO_CANTRCVMORE
jnz @f
;;soisdisconnected(ebx)
mov [ebx + TCP_SOCKET.timer_timed_wait], TCP_time_max_idle
@@:
mov [ebx + TCP_SOCKET.t_state], TCB_FIN_WAIT_2
jmp .ack_processed
.ack_c: ; 958
.ack_c:
jz .ack_processed
mov [ebx + TCP_SOCKET.t_state], TCB_TIMED_WAIT
call TCP_cancel_timers
mov [ebx + TCP_SOCKET.timer_timed_wait], 2 * TCP_time_MSL
;;soisdisconnected(ebx)
jmp .ack_processed
.ack_la: ; 999
jmp .ack_processed
.ack_la:
jz .ack_processed
call TCP_close
jmp .drop
.ack_tw:
mov [ebx + TCP_SOCKET.timer_timed_wait], 2 * TCP_time_MSL
jmp .drop_after_ack
.ack_tw: ; 1010
jmp .ack_processed