[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ipf and cpp with '!' in rules
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: ipf and cpp with '!' in rules
- From: Ben Bullock <brb_(_at_)_meadvillelibrary_(_dot_)_org>
- Date: Mon, 26 Mar 2001 09:23:01 -0500
On Monday 26 March 2001 00:15, Crist J. Clark wrote:
> I am trying to use cpp as a preprocessor for ipf rules. However, I am
> having a problem I saw coming. cpp will insert spaces between a
> "define" token and a preceding '!', and ipf does not like a that.
> #define IP_ADDR 192.0.2.1
> block in quick from !IP_ADDR to any
> Will expand to,
> block in quick from ! 192.0.2.1 to any
> Which ipf does not like.
> Anyone have a trick to get around this? Thanks.
cat cpp.file | sed -e "s/\! /\!/" > ipf.rules
Visit your host, monkey.org