From owner-freebsd-bugs Fri Jun 2 1: 5:55 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 5D22437B989; Fri, 2 Jun 2000 01:05:50 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1148.dip0.t-ipconnect.de [62.156.17.72]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id KAA24045; Fri, 2 Jun 2000 10:06:09 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 3E209AC30; Fri, 2 Jun 2000 10:06:22 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 268A414A5E; Fri, 2 Jun 2000 10:05:47 +0200 (CEST) Date: Fri, 2 Jun 2000 10:05:47 +0200 From: Alexander Langer To: green@FreeBSD.ORG Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/18830: add IP_FW_GETRULE to ipfw, in order to get single rules Message-ID: <20000602100547.C650@cichlids.cichlids.com> References: <200006012159.OAA44149@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200006012159.OAA44149@freefall.freebsd.org>; from green@FreeBSD.ORG on Thu, Jun 01, 2000 at 02:59:13PM -0700 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake green@FreeBSD.ORG (green@FreeBSD.ORG): > There are a couple problems I have with it. The big problem is that > you don't copy the entire chain of a specific rule number out, but only > the very first one. I thought about that. That's in fact true, but a) how do you want to get e.g. the second rule? Using a field in the struct ip_fw? b) I really want a _single_ rule. The guys who want the complete chain should use GET then, and not GETRULE. For the shown "ipfw move" implemenation, as example, that wouldn't matter, since you could do that in a while-loop, getting the most top every time, which is ok. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message