diff options
author | rwatson <rwatson@FreeBSD.org> | 2010-02-21 15:25:47 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2010-02-21 15:25:47 +0000 |
commit | e1faba5621ccd12ca011e84fd7368cfae9950f8a (patch) | |
tree | fed789700c22466b15778cd0f735c5721fc50834 /sys/net/if_loop.c | |
parent | 2235c1c97aa6f008916ba47b053639a3c9814dc9 (diff) | |
download | FreeBSD-src-e1faba5621ccd12ca011e84fd7368cfae9950f8a.zip FreeBSD-src-e1faba5621ccd12ca011e84fd7368cfae9950f8a.tar.gz |
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
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r-- | sys/net/if_loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 056b2f9..78d2de2 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -200,12 +200,12 @@ loop_modevent(module_t mod, int type, void *data) } 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, |