After following Max's WireGuard VPN NM plugin effort  and reading the
follow-up discussion on this list , I've been spending some spare
time on non-VPN WireGuard integration.
This patchset is a very rough draft. Only querying and parsing of
existing WireGuard interfaces via genetlink is implemented. I'm a newbie
on multiple fronts here (NetworkManager, glib and WireGuard itself) so
at this point I really need feedback to see if this is going anywhere
near the right direction.
I have a few questions already:
- Is it a good idea to map `Peer` and `AllowedIP` to new NMPObjects?
Particularly AllowedIP feels strange - it's just an addr+mask so
there could be something more suitable already within NM.
- Should the wireguard-specific genetlink parsing be moved elsewhere,
e.g. src/platform/wireguard/ ?
Link: https://github.com/max-moser/network-manager-wireguard/ 
Javier Arteaga (2):
platform: move genl_ctrl_resolve to nm-netlink.c
platform: add support for WireGuard links
src/nm-types.h | 5 +
src/platform/nm-linux-platform.c | 250 +++++++++++++++++++++++++++++++++
src/platform/nm-netlink.c | 68 +++++++++
src/platform/nm-netlink.h | 32 +++--
src/platform/nm-platform.c | 97 +++++++++++++
src/platform/nm-platform.h | 44 ++++++
src/platform/nmp-object.c | 25 ++++
src/platform/nmp-object.h | 21 +++
src/platform/wifi/wifi-utils-nl80211.c | 80 -----------
9 files changed, 527 insertions(+), 95 deletions(-)
networkmanager-list mailing list