svn commit: r204173 - head/sys/net
Robert Watson
rwatson at FreeBSD.org
Sun Feb 21 15:25:47 UTC 2010
Author: rwatson
Date: Sun Feb 21 15:25:47 2010
New Revision: 204173
URL: http://svn.freebsd.org/changeset/base/204173
Log:
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)
MFC after: 1 week
Modified:
head/sys/net/if_loop.c
Modified: head/sys/net/if_loop.c
==============================================================================
--- head/sys/net/if_loop.c Sun Feb 21 14:58:01 2010 (r204172)
+++ head/sys/net/if_loop.c Sun Feb 21 15:25:47 2010 (r204173)
@@ -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