diff options
author | brooks <brooks@FreeBSD.org> | 2004-06-22 20:13:25 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-06-22 20:13:25 +0000 |
commit | e1dd867b5532da103ae1459a89ca3df2b8b6f0f6 (patch) | |
tree | bebe9375487f298832806df2423be9c48dba04e6 /sys/conf | |
parent | dd32b92c2514b98b8c9d9af7ac82532d833c6db2 (diff) | |
download | FreeBSD-src-e1dd867b5532da103ae1459a89ca3df2b8b6f0f6.zip FreeBSD-src-e1dd867b5532da103ae1459a89ca3df2b8b6f0f6.tar.gz |
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
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files index bf3631f..0febe87 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1222,6 +1222,7 @@ net/bsd_comp.c optional ppp_bsdcomp net/if.c standard net/if_arcsubr.c optional arcnet net/if_atmsubr.c optional atm +net/if_clone.c standard net/if_disc.c optional disc net/if_ef.c optional ef net/if_ethersubr.c optional ether |