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
This commit is contained in:
parent
3878829eeb
commit
5702371bd2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204173
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user