From owner-freebsd-ipfw Mon Feb 28 3:14:48 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by hub.freebsd.org (Postfix) with ESMTP id DA87037B78B; Mon, 28 Feb 2000 03:14:41 -0800 (PST) (envelope-from Kai.Grossjohann@CS.Uni-Dortmund.DE) Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id MAA05278; Mon, 28 Feb 2000 12:14:05 +0100 (MET) Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id MAA09286; Mon, 28 Feb 2000 12:14:04 +0100 (MET) Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-6) id MAA03941; Mon, 28 Feb 2000 12:14:04 +0100 X-Authentication-Warning: lucy.cs.uni-dortmund.de: grossjoh set sender to Kai.Grossjohann@CS.Uni-Dortmund.DE using -f To: Jim Bloom Cc: freebsd-current@FreeBSD.ORG, freebsd-ipfw@FreeBSD.ORG Subject: Re: cpp change breaks ipfw References: <38B8BAC5.9927A56E@acm.org> From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai=?iso-8859-1?q?_Gro=DFjohann?=) Date: 28 Feb 2000 12:14:04 +0100 In-Reply-To: Jim Bloom's message of "Sun, 27 Feb 2000 00:48:53 -0500" Message-ID: Lines: 24 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jim Bloom writes: > On the old version of current this expands to > > add pass tcp from 192.168.2.5:255.255.254.0 to any 25 setup > > but on a new version of current this expands to > > add pass tcp from 192.168.2.5 : 255.255.254.0 to any 25 setup You might wish to try this: /---- | #define rule(ADDR,MASK) \ | add pass tcp from ADDR ## : ## MASK to any 25 setup | | rule(192.168.2.5,255.255.254.0) \---- Does it do what you want? Somewhat clumsy, but it does seem to work. kai -- ~/.signature: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message