From: Harald Welte Subject: Re: IPtables performance (fwd) Date: Fri, 2 May 2003 22:14:25 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20030502201425.GP26924@sunbeam.de.gnumonks.org> References: <20030429143442.GD684@naboo.intranet.astaro.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mvuFargmsA+C2jC8" Cc: netfilter-devel@lists.netfilter.org, Robert Olsson , John McEleney , Ben McKeegan Return-path: To: Chris Wilson Content-Disposition: inline In-Reply-To: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --mvuFargmsA+C2jC8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 02, 2003 at 07:32:29PM +0100, Chris Wilson wrote: > I agree completely that it's important for the kernel to verify that the= =20 > ruleset does not break this condition by calling rules which are not=20 > valid from a given hook. great :) > However, it seems to me that it's only necessary to visit each rule once= =20 > _and_ set the appropriate bit in the 'comefrom' bitmask. Once the bit is= =20 > set, there's no use setting it again. true. > So it's only necessary to visit each rule once per hook, in order both to= =20 > detect loops and mark the valid source chains (hooks). also true. (given that loops could be detected while still only visiting every rule once) > Therefore, if the patched code does actually succeed in visiting each rul= e=20 > once, and detecting loops, and setting the appropriate bit in comefrom,= =20 > then it's functionally equivalent to the original code, right? yes. Are you claiming that it does so? > Cheers, Chris. --=20 - Harald Welte http://www.netfilter.org/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie --mvuFargmsA+C2jC8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+stGhXaXGVTD0i/8RAn3xAJ9vyyOZSLo+YiZK3bdRzcHZADvd4ACeMuQc nvFpMl7Z9xcd5/Xg5khZyIY= =oP+d -----END PGP SIGNATURE----- --mvuFargmsA+C2jC8--