diff --git a/kernel/branches/net/network/tcp.inc b/kernel/branches/net/network/tcp.inc index bdcea76e2..a0015b3a7 100644 --- a/kernel/branches/net/network/tcp.inc +++ b/kernel/branches/net/network/tcp.inc @@ -95,6 +95,8 @@ TCP_BIT_DROPSOCKET = 1 shl 2 TCP_BIT_SENDALOT = 1 shl 0 +TCP_PAWS_IDLE = 24*24*60*60*100 ; 24 days, in 1/100 seconds + struct TCP_header SourcePort dw ? diff --git a/kernel/branches/net/network/tcp_input.inc b/kernel/branches/net/network/tcp_input.inc index 8d5139e80..f339d56fc 100644 --- a/kernel/branches/net/network/tcp_input.inc +++ b/kernel/branches/net/network/tcp_input.inc @@ -267,7 +267,7 @@ TCP_input: mov eax, [esp+4+4] ; tcp_now sub eax, [ebx + TCP_SOCKET.ts_recent_age] cmp eax, TCP_PAWS_IDLE - jle .dropafterack ; TODO: update stats + jle .drop_after_ack ; TODO: update stats mov [ebx + TCP_SOCKET.ts_recent], 0 ; timestamp was invalid, fix it. .no_paws: