[RFC PATCH 2/2] platform: add support for WireGuard links

2018-03-13 Thread Javier Arteaga
Add support for a new wireguard link type to the platform code. For now this only covers querying existing links via Generic Netlink and parsing them into platform objects. --- src/nm-types.h | 5 + src/platform/nm-linux-platform.c | 250 +++

[RFC PATCH 0/2] platform: add WireGuard support

2018-03-13 Thread Javier Arteaga
Hi all, After following Max's WireGuard VPN NM plugin effort [1] and reading the follow-up discussion on this list [2], 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

[RFC PATCH 1/2] platform: move genl_ctrl_resolve to nm-netlink.c

2018-03-13 Thread Javier Arteaga
Move genl_ctrl_resolve out of the wifi code so it can be reused by other interfaces based on genetlink. --- src/platform/nm-netlink.c | 68 + src/platform/nm-netlink.h | 32 +++--- src/platform/wifi/wifi-utils-nl80211.c | 80