cvs commit: src/sys/conf files src/sys/contrib/pf/net if_pflog.c if_pfsync.c pfvar.h src/sys/net if.c if.h if_clone.c if_clone.h if_disc.c if_faith.c if_gif.c if_gre.c if_loop.c if_ppp.c if_stf.c if_var.h if_vlan.c

Brooks Davis brooks at
Tue Jun 22 13:13:38 PDT 2004

brooks      2004-06-22 20:13:26 UTC

  FreeBSD src repository

  Modified files:
    sys/conf             files 
    sys/contrib/pf/net   if_pflog.c if_pfsync.c pfvar.h 
    sys/net              if.c if.h if_disc.c if_faith.c if_gif.c 
                         if_gre.c if_loop.c if_ppp.c if_stf.c 
                         if_var.h if_vlan.c 
  Added files:
    sys/net              if_clone.c if_clone.h 
  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
  Submitted by:   Maurycy Pawlowski-Wieronski <maurycy at> [1]
  Reviewed by:    andre, mlaier
  Discussed on:   net
  Revision  Changes    Path
  1.907     +1 -0      src/sys/conf/files
  1.9       +4 -2      src/sys/contrib/pf/net/if_pflog.c
  1.9       +4 -2      src/sys/contrib/pf/net/if_pfsync.c
  1.7       +1 -0      src/sys/contrib/pf/net/pfvar.h
  1.195     +2 -242    src/sys/net/if.c
  1.87      +0 -22     src/sys/net/if.h
  1.1       +468 -0    src/sys/net/if_clone.c (new)
  1.1       +113 -0    src/sys/net/if_clone.h (new)
  1.41      +3 -2      src/sys/net/if_disc.c
  1.30      +2 -2      src/sys/net/if_faith.c
  1.47      +2 -2      src/sys/net/if_gif.c
  1.25      +2 -2      src/sys/net/if_gre.c
  1.97      +2 -2      src/sys/net/if_loop.c
  1.99      +2 -2      src/sys/net/if_ppp.c
  1.41      +46 -12    src/sys/net/if_stf.c
  1.80      +0 -9      src/sys/net/if_var.h
  1.66      +142 -9    src/sys/net/if_vlan.c

More information about the cvs-src mailing list