freebsd-skq/sbin/ipfw
joerg f17aeea6de 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.
1998-11-23 10:54:28 +00:00
..
ipfw.8 Preprocessor support for `ipfw [-q] ... file'. 1998-11-23 10:54:28 +00:00
ipfw.c Preprocessor support for `ipfw [-q] ... file'. 1998-11-23 10:54:28 +00:00
Makefile Submitted by: Whistle Communications (archie Cobbs) 1997-06-02 05:02:37 +00:00