From owner-freebsd-ipfw Mon Feb 28 1:47:16 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 744D337B892; Mon, 28 Feb 2000 01:47:11 -0800 (PST) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (root@d60-024.leach.ucdavis.edu [169.237.60.24]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id BAA74402; Mon, 28 Feb 2000 01:47:08 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id BAA25838; Mon, 28 Feb 2000 01:47:14 -0800 (PST) (envelope-from obrien) Date: Mon, 28 Feb 2000 01:47:13 -0800 From: "David O'Brien" To: Jim Bloom Cc: freebsd-current@freebsd.org, freebsd-ipfw@freebsd.org Subject: Re: cpp change breaks ipfw Message-ID: <20000228014713.A25772@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <38B8BAC5.9927A56E@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38B8BAC5.9927A56E@acm.org>; from bloom@acm.org on Sun, Feb 27, 2000 at 12:48:53AM -0500 X-Operating-System: FreeBSD 4.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 27, 2000 at 12:48:53AM -0500, Jim Bloom wrote: > 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 > > Note the extra spaces around the colon. This is required by the ANSI-C spec. Tokens replaced by `cpp' shall be seperated by white space. > There are several options here: > 1) Fix cpp to not emit the extra spaces Would break the ANSI-C spec. > 3) Document the cpp is not a valid preprocessor for ipfw on the manual page. ``cpp'' really isn't a general purpose pre-processor -- it is exclusively designed with the needs and usage of C in mind. ``m4'' is a much better general purpose processor. That said ``/usr/bin/cpp -traditional'' will do what you want it to do. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message