From owner-cvs-all Mon Nov 23 02:54:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA29284 for cvs-all-outgoing; Mon, 23 Nov 1998 02:54:26 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA29279; Mon, 23 Nov 1998 02:54:24 -0800 (PST) (envelope-from joerg@FreeBSD.org) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA02522; Mon, 23 Nov 1998 02:54:29 -0800 (PST) Date: Mon, 23 Nov 1998 02:54:29 -0800 (PST) Message-Id: <199811231054.CAA02522@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sbin/ipfw ipfw.8 ipfw.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk joerg 1998/11/23 02:54:29 PST Modified files: sbin/ipfw ipfw.8 ipfw.c Log: Preprocessor support for `ipfw [-q] ... file'. This allows for more flexible ipfw configuration files using `variables' to describe frequently used items in the file, like the local IP address(es), interface names etc. Both m4 and cpp are useful and supported; with m4 being a little more unusual to the common C programmer, things like automatic rule numbering can be achieved fairly easy. While i was at it, i've also untangled some of the ugly style inside main(), and fixed a bug or two (like not being able to use blank lines when running with -q). A typical call with preprocessor invocation looks like ipfw -p m4 -Dhostname=$(hostname) /etc/fwrules Someone should probably add support for this feature to /etc/rc.firewall. Revision Changes Path 1.45 +32 -1 src/sbin/ipfw/ipfw.8 1.61 +113 -14 src/sbin/ipfw/ipfw.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message