FreeBSD src
Go to file
Luigi Rizzo 62ff38ae06 In random order:
* make the code compile with WARNS=5 (at least on i386), mostly
  by adding 'const' specifier and replacing "void *" with "char *"
  in places where pointer arithmetic was used.
  This also spotted a few places where invalid tests (e.g. uint < 0)
  were used.

* support ranges in "list" and "show" commands. Now you can say

        ipfw show 100-1000 4000-8000

  which is very convenient when you have large rulesets.

* implement comments in ipfw commands. These are implemented in the
  kernel as O_NOP commands (which always match) whose body contains
  the comment string. In userland, a comment is a C++-style comment:

        ipfw add allow ip from me to any // i can talk to everybody

  The choice of '//' versus '#' is somewhat arbitrary, but because
  the preprocessor/readfile part of ipfw used to strip away '#',
  I did not want to change this behaviour.

  If a rule only contains a comment

        ipfw add 1000 // this rule is just a comment

  then it is stored as a 'count' rule (this is also to remind
  the user that scanning through a rule is expensive).

* improve handling of flags (still to be completed).
  ipfw_main() was written thinking of 'one rule per ipfw invocation',
  and so flags are set and never cleared. With readfile/preprocessor
  support, this changes and certain flags should be reset on each
  line. For the time being, only fix handling of '-a' which
  differentiates the "list" and "show" commands.

* rework the preprocessor support -- ipfw_main() already had most
  of the parsing code, so i have moved in there the only missing
  bit (stripping away '#' and comments) and removed the parsing
  from ipfw_readfile().
  Also, add some more options (such as -c, -N, -S) to the readfile
  section.

MFC after: 3 days
2003-07-12 06:53:16 +00:00
bin Temporarily turn off -Werror for these components. 2003-07-11 05:24:32 +00:00
contrib Merge FreeBSD changes into GCC 3.3.1-prerelease. 2003-07-11 06:00:50 +00:00
crypto This commit was generated by cvs2svn to compensate for changes in r116791, 2003-06-24 19:30:44 +00:00
etc Update for new C++ include files layout. 2003-07-11 05:29:59 +00:00
games Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust the 2003-06-23 16:01:11 +00:00
gnu Include osreldate.h instead of sys/param.h to get __FreeBSD_version 2003-07-11 18:55:58 +00:00
include Don't be so chatty about osreldate.h creation steps when make(1) 2003-07-04 19:54:06 +00:00
kerberos5 Fixed "make checkdpadd". 2003-07-02 23:46:39 +00:00
lib Don't resume sigwait thread If signal is masked. 2003-07-09 22:30:55 +00:00
libexec Block SIGURG while reading from the control channel. 2003-07-09 13:54:33 +00:00
release Catch up with the English version: 2003-07-09 08:58:08 +00:00
rescue Turn rescue back on, conditional to NORESCUE. We seem to be split on 2003-07-11 16:57:43 +00:00
sbin In random order: 2003-07-12 06:53:16 +00:00
secure Fixed "make checkdpadd". 2003-07-02 23:38:42 +00:00
share add asus wl100 2003-07-11 09:25:18 +00:00
sys Implement comments embedded into ipfw2 instructions. 2003-07-12 05:54:17 +00:00
tools Fixed broken arithmetic expression parser. 2003-07-04 13:33:48 +00:00
usr.bin Since (x)install is pretty unhelpfull and just spits out a Usage 2003-07-11 20:51:16 +00:00
usr.sbin Lower WARNS to 3 so that this still compiles on non x86 architectures. 2003-07-11 17:15:19 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
Makefile Don't hardcore PATH into BINMAKE; the latter should only be 2003-07-04 17:35:26 +00:00
Makefile.inc1 Forgot that the rescue subdir needs to be a conditional for the 2003-07-11 17:01:58 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Correct a spelling error. 2003-07-12 01:16:54 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html