FreeBSD src
Go to file
Luigi Rizzo cc4d3c30ea Bring in the most recent version of ipfw and dummynet, developed
and tested over the past two months in the ipfw3-head branch.  This
also happens to be the same code available in the Linux and Windows
ports of ipfw and dummynet.

The major enhancement is a completely restructured version of
dummynet, with support for different packet scheduling algorithms
(loadable at runtime), faster queue/pipe lookup, and a much cleaner
internal architecture and kernel/userland ABI which simplifies
future extensions.

In addition to the existing schedulers (FIFO and WF2Q+), we include
a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new,
very fast version of WF2Q+ called QFQ.

Some test code is also present (in sys/netinet/ipfw/test) that
lets you build and test schedulers in userland.

Also, we have added a compatibility layer that understands requests
from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries,
and replies correctly (at least, it does its best; sometimes you
just cannot tell who sent the request and how to answer).
The compatibility layer should make it possible to MFC this code in a
relatively short time.

Some minor glitches (e.g. handling of ipfw set enable/disable,
and a workaround for a bug in RELENG_7's /sbin/ipfw) will be
fixed with separate commits.

CREDITS:
This work has been partly supported by the ONELAB2 project, and
mostly developed by Riccardo Panicucci and myself.
The code for the qfq scheduler is mostly from Fabio Checconi,
and Marta Carbone and Francesco Magno have helped with testing,
debugging and some bug fixes.
2010-03-02 17:40:48 +00:00
bin The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 07:20:46 +00:00
cddl Fixed dependencies (make checkdpadd). 2010-02-25 22:18:35 +00:00
contrib MFV of r204563, tzdata2010c: 2010-03-02 10:03:06 +00:00
crypto Add a missing $FreeBSD$ string. 2010-01-13 20:30:16 +00:00
etc Add the shutdown KEYWORD. 2010-02-27 19:02:21 +00:00
games s/all ready/already/ 2010-02-26 16:27:11 +00:00
gnu Add n32 ABI generators... 2010-03-02 05:43:04 +00:00
include Remove clause 3 from Berkeley copyrights. Add a few $FreeBSD$'s. 2010-02-16 19:46:46 +00:00
kerberos5 Fix a typo. 2010-01-09 18:53:03 +00:00
lib The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 17:20:04 +00:00
libexec Fixed static linkage. 2010-02-26 09:41:16 +00:00
release Provide a script that can be used to create the memstick images. For now 2010-02-18 15:45:43 +00:00
rescue Remove libulog from the bootstrap again. 2010-01-21 16:56:27 +00:00
sbin Bring in the most recent version of ipfw and dummynet, developed 2010-03-02 17:40:48 +00:00
secure (Almost) fixed static linkage. The remaining problem is with 2010-02-26 12:12:54 +00:00
share Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
sys Bring in the most recent version of ipfw and dummynet, developed 2010-03-02 17:40:48 +00:00
tools The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 17:05:19 +00:00
usr.bin Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
usr.sbin Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
COPYRIGHT Happy New Year 2010! :-) 2009-12-31 10:00:37 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS Add heads-up requests for parts of the tree I look after and which 2010-02-18 21:14:29 +00:00
Makefile Update DTC to git d75b33af676d0beac8398651a7f09037555a550b. 2010-02-27 20:38:41 +00:00
Makefile.inc1 Regen the list of prebuild libraries using tools/make_libdeps.sh. 2010-01-26 10:00:26 +00:00
ObsoleteFiles.inc ia64: <machine/sapicreg.h> and <machine/sapicvar.h> removed. 2010-02-27 19:00:13 +00:00
README Simply running ``make world'' will bomb unless you dig up the 2006-06-07 03:33:48 +00:00
UPDATING Add wtmpcvt(1). 2010-01-14 20:58:45 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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.

rescue		Build system for statically linked /rescue utilities.

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