From owner-cvs-all Thu Sep 9 6:43: 6 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BBA0715151; Thu, 9 Sep 1999 06:43:03 -0700 (PDT) (envelope-from ru@FreeBSD.org) Received: (from ru@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA58052; Thu, 9 Sep 1999 06:42:52 -0700 (PDT) (envelope-from ru@FreeBSD.org) Message-Id: <199909091342.GAA58052@freefall.freebsd.org> From: Ruslan Ermilov Date: Thu, 9 Sep 1999 06:42:52 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libalias alias.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk ru 1999/09/09 06:42:52 PDT Modified files: lib/libalias alias.c Log: Handle TCP reset sequence properly. In the words of originator: :If an incoming connection is initiated through natd and deny_incoming is :not set, then a new alias_link structure is created to handle the link. :If there is nothing listening for the incoming connection, then the kernel :responds with a RST for the connection. However, this is not processed :correctly in libalias/alias.c:TcpMonitor{In,Out} and :libalias/alias_db.c:SetState{In,Out} as it thinks a connection :has been established and therefore applies a timeout of 86400 seconds :to the link. : :If many of these half-connections are initiated (during, for example, a :port scan of the host), then many thousands of unnecessary links are :created and the resident size of natd balloons to 20MB or more. PR: 13639 Reviewed by: brian Revision Changes Path 1.15 +3 -3 src/lib/libalias/alias.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message