tuntap(4): properly declare if_tun and if_tap modules
Simply adding MODULE_VERSION does not do the trick, because the modules haven't been declared. This should actually fix modfind/kldstat, which r351229 aimed and failed to do. This should make vm-bhyve do the right thing again when using the ports version, rather than the latest version not in ports. MFC after: 3 days
This commit is contained in:
parent
77d70e515f
commit
200abb43c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353877
@ -783,9 +783,15 @@ static moduledata_t tuntap_mod = {
|
||||
0
|
||||
};
|
||||
|
||||
/* We'll only ever have these two, so no need for a macro. */
|
||||
static moduledata_t tun_mod = { "if_tun", NULL, 0 };
|
||||
static moduledata_t tap_mod = { "if_tap", NULL, 0 };
|
||||
|
||||
DECLARE_MODULE(if_tuntap, tuntap_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||
MODULE_VERSION(if_tuntap, 1);
|
||||
DECLARE_MODULE(if_tun, tun_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||
MODULE_VERSION(if_tun, 1);
|
||||
DECLARE_MODULE(if_tap, tap_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||
MODULE_VERSION(if_tap, 1);
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user