Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 1998 02:54:29 -0800 (PST)
From:      Joerg Wunsch <joerg@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sbin/ipfw ipfw.8 ipfw.c
Message-ID:  <199811231054.CAA02522@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811231054.CAA02522>