From owner-cvs-src@FreeBSD.ORG Thu Nov 3 12:25:29 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECC3C16A41F; Thu, 3 Nov 2005 12:25:29 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B6DD43D58; Thu, 3 Nov 2005 12:25:29 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jA3CPTUt078093; Thu, 3 Nov 2005 12:25:29 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jA3CPTib078092; Thu, 3 Nov 2005 12:25:29 GMT (envelope-from glebius) Message-Id: <200511031225.jA3CPTib078092@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 3 Nov 2005 12:25:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/sys/contrib/pf/net if_pfsync.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 12:25:30 -0000 glebius 2005-11-03 12:25:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/contrib/pf/net if_pfsync.c Log: MFOpenBSD 1.37, 1.38, 1.41. This is already present in RELENG_6 and HEAD due to OPENBSD_3_7 pf import - Increment the states reference counter in the rule attached to the state being inserted, so that the counter does not wrap back when the state is removed. This fixes pfsync setups with adaptive timeouts. - Clean up reference counting wrt state creation and destruction. Fixes problems with adaptive timeouts, max-states limits, and rules not being freed from memory. - Set creation timestamps correctly on states learnt by pfsync that are more than a second old. PR: 83187 PR: 83186 Submitted by: Martin Matuska Revision Changes Path 1.11.2.4 +7 -2 src/sys/contrib/pf/net/if_pfsync.c