From a033334ecbb364cbdf5fe11f49dd32c4bbd33642 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 28 Aug 2012 09:33:50 +0000 Subject: [PATCH] Added missing file git-svn-id: svn://kolibrios.org@2947 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/net/network/tcp.inc | 2 ++ kernel/branches/net/network/tcp_input.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/branches/net/network/tcp.inc b/kernel/branches/net/network/tcp.inc index bdcea76e29..a0015b3a7f 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 8d5139e801..f339d56fca 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: