Date: Tue, 5 Feb 2002 07:30:04 -0800 (PST) From: Peter Pentchev <roam@ringlet.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/34639: IPFW skipto works too slow Message-ID: <200202051530.g15FU4D14820@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/34639; it has been noted by GNATS. From: Peter Pentchev <roam@ringlet.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202051530.g15FU4D14820>