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:
Kristof Provost
2023-04-27 17:35:12 +02:00
parent 41788453b0
commit 61b95bcb42
+4 -4
View File
@@ -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);