summaryrefslogtreecommitdiffstats
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2010-02-21 15:25:47 +0000
committerrwatson <rwatson@FreeBSD.org>2010-02-21 15:25:47 +0000
commite1faba5621ccd12ca011e84fd7368cfae9950f8a (patch)
treefed789700c22466b15778cd0f735c5721fc50834 /sys/net/if_loop.c
parent2235c1c97aa6f008916ba47b053639a3c9814dc9 (diff)
downloadFreeBSD-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.c4
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,
OpenPOWER on IntegriCloud