wg: change module name to if_wg
Other virtual interface drivers (e.g. if_gif, if_stf, if_ovpn) all start with if_. The wireguard file is also named if_wg, but the module name was 'wg'. Fix this inconsistency. Reported by: Christian McDonald <cmcdonald@netgate.com> Reviewed by: zlei, kevans Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39853
This commit is contained in:
+4
-4
@@ -3055,11 +3055,11 @@ wg_module_event_handler(module_t mod, int what, void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static moduledata_t wg_moduledata = {
|
static moduledata_t wg_moduledata = {
|
||||||
wgname,
|
"if_wg",
|
||||||
wg_module_event_handler,
|
wg_module_event_handler,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_MODULE(wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
DECLARE_MODULE(if_wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||||
MODULE_VERSION(wg, WIREGUARD_VERSION);
|
MODULE_VERSION(if_wg, WIREGUARD_VERSION);
|
||||||
MODULE_DEPEND(wg, crypto, 1, 1, 1);
|
MODULE_DEPEND(if_wg, crypto, 1, 1, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user