Skip site navigation (1)Skip section navigation (2)
Date:      28 Feb 2000 12:14:04 +0100
From:      Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai=?iso-8859-1?q?_Gro=DFjohann?=)
To:        Jim Bloom <bloom@acm.org>
Cc:        freebsd-current@FreeBSD.ORG, freebsd-ipfw@FreeBSD.ORG
Subject:   Re: cpp change breaks ipfw
Message-ID:  <vafem9x1sw3.fsf@lucy.cs.uni-dortmund.de>
In-Reply-To: Jim Bloom's message of "Sun, 27 Feb 2000 00:48:53 -0500"
References:  <38B8BAC5.9927A56E@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jim Bloom <bloom@acm.org> 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-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vafem9x1sw3.fsf>