freebsd kernel with SKQ
Go to file
Luigi Rizzo bbb4330b61 Massive cleanup of the ip_mroute code.
No functional changes, but:

  + the mrouting module now should behave the same as the compiled-in
    version (it did not before, some of the rsvp code was not loaded
    properly);
  + netinet/ip_mroute.c is now truly optional;
  + removed some redundant/unused code;
  + changed many instances of '0' to NULL and INADDR_ANY as appropriate;
  + removed several static variables to make the code more SMP-friendly;
  + fixed some minor bugs in the mrouting code (mostly, incorrect return
    values from functions).

This commit is also a prerequisite to the addition of support for PIM,
which i would like to put in before DP2 (it does not change any of
the existing APIs, anyways).

Note, in the process we found out that some device drivers fail to
properly handle changes in IFF_ALLMULTI, leading to interesting
behaviour when a multicast router is started. This bug is not
corrected by this commit, and will be fixed with a separate commit.

Detailed changes:
--------------------
netinet/ip_mroute.c     all the above.
conf/files              make ip_mroute.c optional
net/route.c             fix mrt_ioctl hook
netinet/ip_input.c      fix ip_mforward hook, move rsvp_input() here
                        together with other rsvp code, and a couple
                        of indentation fixes.
netinet/ip_output.c     fix ip_mforward and ip_mcast_src hooks
netinet/ip_var.h        rsvp function hooks
netinet/raw_ip.c        hooks for mrouting and rsvp functions, plus
                        interface cleanup.
netinet/ip_mroute.h     remove an unused and optional field from a struct

Most of the code is from Pavlin Radoslavov and the XORP project

Reviewed by: sam
MFC after: 1 week
2002-11-15 22:53:53 +00:00
bin Minimal take on previous commit -- remove getopt and printf. Static size 2002-11-14 01:14:35 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r106907, 2002-11-14 10:04:51 +00:00
crypto Add caveats regarding the effect of PAM on PasswordAuthentication and 2002-11-06 08:04:56 +00:00
etc Backout rev. 1.263. 2002-11-15 18:44:09 +00:00
games Add gerrold.limerick to the building process. 2002-11-10 23:41:01 +00:00
gnu Take __FreeBSD_version into account when BOOTSTRAPPING. 2002-11-13 13:49:29 +00:00
include Fix XSI (X/Open) namespace support. 2002-11-12 14:41:49 +00:00
kerberos5 Take __FreeBSD_version into account when BOOTSTRAPPING. 2002-11-13 13:49:29 +00:00
kerberosIV update version numbers to (consistenly): 2002-10-23 06:12:21 +00:00
lib utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than 2002-11-15 22:42:00 +00:00
libexec [DAIVD O'BRIEN's OPINION] 2002-11-12 17:31:12 +00:00
release Rework the checking out of the doc, src, and ports trees a bit to make it 2002-11-15 22:03:25 +00:00
sbin update vlandev description; vlan code now auto-recognizes devices that 2002-11-15 00:31:49 +00:00
secure DON'T EVER PUT THIS BACK! 2002-11-08 12:47:51 +00:00
share Document NOCDROM and NO_FLOPPIES. 2002-11-15 20:55:37 +00:00
sys Massive cleanup of the ip_mroute code. 2002-11-15 22:53:53 +00:00
tools Add test cases for btowc() and wctob() in multibyte locales. 2002-11-10 11:03:32 +00:00
usr.bin A little bit of anti-foot-shooting. Use utimes(2) rather than 2002-11-15 22:43:56 +00:00
usr.sbin utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than 2002-11-15 22:42:00 +00:00
COPYRIGHT
MAINTAINERS Remove my 'pre-commit' on sa(4). 2002-11-11 16:56:40 +00:00
Makefile PC98 is not a true architecture, but a subarchitecture of i386, so we need 2002-10-02 13:52:36 +00:00
Makefile.inc1 Make dynamic PAM modules depend on dynamic PAM library. 2002-11-14 19:24:51 +00:00
Makefile.upgrade
README Fix broken handbook links. 2002-07-21 16:45:30 +00:00
UPDATING OK, you can use the 4.x boot loader and boot blocks to load kernels, but 2002-10-30 20:11:07 +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.

kerberosIV	KerberosIV (eBones) 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