freebsd kernel with SKQ
Go to file
Christian S.J. Peron 52f1277eea Currently, drivers that support hardware offload of VLAN tag
processing are forced to toggle this functionality when the card
is put in and out of promiscuous mode.  The main reason for this
is because the hardware strips the VLAN tag, making it impossible
for the tag information to show up in network diagnostic tools like
tcpdump(1).

This change introduces ether_vlan_mtap(), which is called if the
mbuf has M_VLANTAG set.  VLAN information is extracted from the
mbuf and inserted into a stack allocated ether vlan header which
is then inserted through the bpf machinery via bpf_mtap2(). The
original mbuf's data pointer and lengths are temporarily adjusted
to eliminate the original Ethernet header for the duration of the
tap operation. This should have no long term effects on the mbuf.

Also, define a new macro, ETHER_BPF_MTAP which should be used
by drivers which support hardware offload of VLAN tag processing.

The fixes for the relevant drivers will follow shortly.

Discussed with:		rwatson, andre, jhb (and others)
Much feedback from:	sam, ru
MFC after:	1 month [1]

[1] The version that is eventually MFCed will be somewhat
    different then this, as there has been significant work
    done to the VLAN code in HEAD.
2006-11-18 23:17:22 +00:00
bin Fix expanding of quoted positional parameters in case patterns. 2006-11-07 22:46:13 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r163976, 2006-11-04 07:53:25 +00:00
crypto Resolve conflicts. 2006-11-10 16:52:41 +00:00
etc Back out 1.120, it was premature. 2006-11-12 12:02:34 +00:00
games Squash a typo. 2006-10-30 12:01:57 +00:00
gnu MFP4: Add an implementation of the ELF(3) and GELF(3) API set. 2006-11-11 17:16:35 +00:00
include Attempt to improve application portability by marking `struct ar_hdr' 2006-11-13 04:28:29 +00:00
kerberos5 Kerberos/Heimdal doesn't really depend on the INET6 macro. 2006-07-28 06:33:27 +00:00
lib Add archive_write_open_filename()/archive_read_open_filename() as 2006-11-15 05:33:38 +00:00
libexec Fix TLS on sparc64 for statically and dynamically linked binaries 2006-10-08 02:50:34 +00:00
release Modified release note: Mention move of GNOME-related ports from 2006-11-17 20:15:26 +00:00
rescue Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
sbin Fix debugging output of '-d', to more accurately reflect if 2006-11-14 01:07:42 +00:00
secure Fix static compilation. 2006-10-07 17:32:05 +00:00
share Have the synopsis compile. 2006-11-18 17:56:59 +00:00
sys Currently, drivers that support hardware offload of VLAN tag 2006-11-18 23:17:22 +00:00
tools Fix message size tests for msgsnd(3) and msgrcv(3). msgsz is the length of 2006-11-16 19:51:10 +00:00
usr.bin In revision 1.14 I broke the -4 and -6 options of sockstat(1). 2006-11-12 19:03:39 +00:00
usr.sbin Ignore SIGPIPE, instead of terminating process. 2006-11-18 22:43:20 +00:00
COPYRIGHT Happy new year, a little late 2006-01-15 22:06:10 +00:00
LOCKS Document commit constraints for RELENG_6_*. 2006-01-13 06:51:43 +00:00
MAINTAINERS Request pre-commit review of BSD.{local,x11*}.dist by portmgr, since these 2006-11-11 22:24:10 +00:00
Makefile When building an upgraded make, don't worry about processing it for 2006-11-01 09:05:40 +00:00
Makefile.inc1 There doesn't seem to be a real reason for include/ to be installed 2006-11-13 05:52:11 +00:00
ObsoleteFiles.inc Note uhidev.4 removal. 2006-11-16 22:34:17 +00:00
README Simply running ``make world'' will bomb unless you dig up the 2006-06-07 03:33:48 +00:00
UPDATING Add a note about the MSI support with details on how to turn MSI off if 2006-11-15 20:02:20 +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