svn commit: r208679 - stable/8/sys/net

Robert Watson rwatson at FreeBSD.org
Mon May 31 22:18:43 UTC 2010


Author: rwatson
Date: Mon May 31 22:18:42 2010
New Revision: 208679
URL: http://svn.freebsd.org/changeset/base/208679

Log:
  Merge r204173 from head to stable/8:
  
    ifconfig(8) expects interface fooX to be supported by the module if_foo,
    and will try to load it if it's not present.  To better meet these
    expectations, change the module name for the loopback interface from
    'loop' to 'if_lo'.  The loopback interface is always compiled into the
    base kernel, so there are no resulting changes in kld files, etc.
  
    Discussed with:       brooks (ages ago)
  
  Approved by:    re (bz, kib)

Modified:
  stable/8/sys/net/if_loop.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/net/if_loop.c
==============================================================================
--- stable/8/sys/net/if_loop.c	Mon May 31 22:07:18 2010	(r208678)
+++ stable/8/sys/net/if_loop.c	Mon May 31 22:18:42 2010	(r208679)
@@ -200,12 +200,12 @@ loop_modevent(module_t mod, int type, vo
 }
 
 static moduledata_t loop_mod = {
-	"loop",
+	"if_lo",
 	loop_modevent,
 	0
 };
 
-DECLARE_MODULE(loop, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
+DECLARE_MODULE(if_lo, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
 
 int
 looutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,


More information about the svn-src-all mailing list