freebsd-dev/sys/contrib/pf/net
Brooks Davis f889d2ef8d Major overhaul of pseudo-interface cloning. Highlights include:
- Split the code out into if_clone.[ch].
 - Locked struct if_clone. [1]
 - Add a per-cloner match function rather then simply matching names of
   the form <name><unit> and <name>.
 - Use the match function to allow creation of <interface>.<tag>
   vlan interfaces.  The old way is preserved unchanged!
 - Also the match function to allow creation of stf(4) interfaces named
   stf0, stf, or 6to4.  This is the only major user visible change in
   that "ifconfig stf" creates the interface stf rather then stf0 and
   does not print "stf0" to stdout.
 - Allow destroy functions to fail so they can refuse to delete
   interfaces.  Currently, we forbid the deletion of interfaces which
   were created in the init function, particularly lo0, pflog0, and
   pfsync0.  In the case of lo0 this was a panic implementation so it
   does not count as a user visiable change. :-)
 - Since most interfaces do not need the new functionality, an family of
   wrapper functions, ifc_simple_*(), were created to wrap old style
   cloner functions.
 - The IF_CLONE_INITIALIZER macro is replaced with a new incompatible
   IFC_CLONE_INITIALIZER and ifc_simple consumers use IFC_SIMPLE_DECLARE
   instead.

Submitted by:   Maurycy Pawlowski-Wieronski <maurycy at fouk.org> [1]
Reviewed by:    andre, mlaier
Discussed on:	net
2004-06-22 20:13:25 +00:00
..
if_pflog.c Major overhaul of pseudo-interface cloning. Highlights include: 2004-06-22 20:13:25 +00:00
if_pflog.h Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
if_pfsync.c Major overhaul of pseudo-interface cloning. Highlights include: 2004-06-22 20:13:25 +00:00
if_pfsync.h Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf_if.c Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf_ioctl.c Import two fixes from the OpenBSD stable branch: 2004-06-17 16:59:47 +00:00
pf_norm.c Import two fixes from the OpenBSD stable branch: 2004-06-17 16:59:47 +00:00
pf_osfp.c Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf_subr.c Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf_table.c Commit pf version 3.5 and link additional files to the kernel build. 2004-06-16 23:24:02 +00:00
pf.c Import two fixes from the OpenBSD stable branch: 2004-06-17 16:59:47 +00:00
pfvar.h Major overhaul of pseudo-interface cloning. Highlights include: 2004-06-22 20:13:25 +00:00