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
..
1998-06-28 18:34:01 +00:00
1998-11-12 17:47:24 +00:00
1998-11-19 20:22:10 +00:00
1998-10-06 07:32:45 +00:00
1998-10-27 04:01:19 +00:00
1998-08-31 16:41:09 +00:00
1998-08-07 06:36:53 +00:00
1998-07-22 05:45:11 +00:00
1998-08-30 04:48:00 +00:00
1998-11-12 11:10:26 +00:00
1998-11-12 11:10:26 +00:00
1998-11-12 11:10:26 +00:00
1998-10-16 00:06:56 +00:00
1998-10-16 00:06:56 +00:00
1998-06-30 06:23:42 +00:00
1998-06-30 06:23:42 +00:00
1998-07-06 07:17:27 +00:00
1998-07-06 07:17:27 +00:00
1998-08-02 16:06:35 +00:00
1998-07-15 06:13:45 +00:00
1998-07-15 06:13:45 +00:00
1998-10-15 13:37:35 +00:00
1998-07-15 06:37:07 +00:00
1998-08-02 16:06:35 +00:00
1998-10-27 04:01:19 +00:00
1998-08-02 16:06:35 +00:00
1998-08-03 06:24:59 +00:00
1998-08-03 06:32:57 +00:00
1998-08-03 06:35:01 +00:00
1998-08-03 06:41:20 +00:00
1998-11-10 11:54:29 +00:00