Date: Mon, 28 Feb 2000 09:18:44 -0500 From: Jim Bloom <bloom@acm.org> To: Kai =?iso-8859-1?Q?Gro=DFjohann?= <Kai.Grossjohann@CS.Uni-Dortmund.DE> Cc: freebsd-current@FreeBSD.ORG, freebsd-ipfw@FreeBSD.ORG Subject: Re: cpp change breaks ipfw Message-ID: <38BA83C4.8457CC69@acm.org> References: <38B8BAC5.9927A56E@acm.org> <vafem9x1sw3.fsf@lucy.cs.uni-dortmund.de> <38BA6E6D.239DEDB1@acm.org> <vafsnyd4evy.fsf@lucy.cs.uni-dortmund.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Kai Gro=DFjohann wrote: > = > /---- > | $ cat foo > | #define rule(ADDR,MASK) add pass tcp from ADDR ## : ## MASK to any 25= setup > | rule(192.168.2.5,255.255.254.0) > | $ type cpp > | cpp is hashed (/usr/bin/cpp) > | $ cpp foo > | # 1 "foo" > | > | add pass tcp from 192.168.2.5:255.255.254.0 to any 25 setup > | $ cpp --version > | 2.95.2 > \---- > = > Note that there is no space in ``192.168.2.5:255.255.254.0''. I > thought that this is what you wanted? If this isn't what you wanted, > I'm sorry for the misunderstanding. That small test works fine, but doesn't solve the problem I was having. = Try this small test case to see my problem: #define addr 192.186.2.5 #define mask 255.255.240.0 #define rule(ADDR,MASK) add pass tcp from ADDR ## : ## MASK to any 25 set= up rule(addr,mask) This also does not work if addr and mask are defined on the command line.= The problem arises from using another defined value as the string being concatenated. The concatenation works for constants though. Jim Bloom bloom@acm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38BA83C4.8457CC69>