From owner-freebsd-bugs Tue Feb 5 7:31:27 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 05A2537B422 for ; Tue, 5 Feb 2002 07:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g15FU4D14820; Tue, 5 Feb 2002 07:30:04 -0800 (PST) (envelope-from gnats) Date: Tue, 5 Feb 2002 07:30:04 -0800 (PST) Message-Id: <200202051530.g15FU4D14820@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: kern/34639: IPFW skipto works too slow Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/34639; it has been noted by GNATS. From: Peter Pentchev To: wawa@yandex-team.ru Cc: bug-followup@FreeBSD.org Subject: Re: kern/34639: IPFW skipto works too slow Date: Tue, 5 Feb 2002 17:22:42 +0200 On Tue, Feb 05, 2002 at 05:53:19PM +0300, wawa@yandex-team.ru wrote: > > >Number: 34639 > >Category: kern > >Synopsis: IPFW skipto works too slow > >Description: > The original implementation of skipto rule use brute-force to find the appropriate rule. > The suggested implementation use indexed access. Your suggested implementation has just one drawback: it assumes that the rule exists. AFAIR, the current skipto implementation will skip to the lowest-numbered rule no lower than the specified one, so you can safely delete the rule with that specific number and still rest assured that the following rules will be honored. G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message