wg: Port #12: remove unsupported vnet code and use if_clone only
commit3b7831f622515479f98d08b9adfa94744852f414
authorAaron LI <aly@aaronly.me>
Wed, 11 Oct 2023 01:13:31 +0000 (11 09:13 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:45 +0000 (8 14:44 +0800)
treee8831cc08940ac04c091f1aad4882341dad495e4
parent7ee118d78aa8734f3eefb005fee855c74519287d
wg: Port #12: remove unsupported vnet code and use if_clone only

In addition, change the module unloading logic a bit: prevent from
unloading and return the EBUSY error if the module is still in use.
sys/net/wg/if_wg.c
sys/net/wg/wg_cookie.c
sys/net/wg/wg_cookie.h