summaryrefslogtreecommitdiff
path: root/libnm
diff options
context:
space:
mode:
authorJavier Arteaga <jarteaga@jbeta.is>2018-03-13 13:42:38 +0000
committerThomas Haller <thaller@redhat.com>2018-08-06 08:34:27 +0200
commit54df43ed523afb4e8d92a0bebe02d173d02c18fb (patch)
tree2b529a2a48c076fcec4f3e3249ba6b23457c4d57 /libnm
parentedd5cf1a3ca5cf43955976bb83d9fcc142969a55 (diff)
downloadNetworkManager-54df43ed523afb4e8d92a0bebe02d173d02c18fb.tar.gz
core: introduce NMDeviceWireGuard
For now, the device only exposes partial link status (not including peers). It cannot create new links.
Diffstat (limited to 'libnm')
-rw-r--r--libnm/nm-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c
index 4745591553..aa45c4ada0 100644
--- a/libnm/nm-device.c
+++ b/libnm/nm-device.c
@@ -286,6 +286,7 @@ coerce_type (NMDeviceType type)
case NM_DEVICE_TYPE_PPP:
case NM_DEVICE_TYPE_WPAN:
case NM_DEVICE_TYPE_6LOWPAN:
+ case NM_DEVICE_TYPE_WIREGUARD:
return type;
}
return NM_DEVICE_TYPE_UNKNOWN;
@@ -1351,6 +1352,8 @@ get_type_name (NMDevice *device)
return _("IEEE 802.15.4");
case NM_DEVICE_TYPE_6LOWPAN:
return _("6LoWPAN");
+ case NM_DEVICE_TYPE_WIREGUARD:
+ return _("WireGuard");
case NM_DEVICE_TYPE_GENERIC:
case NM_DEVICE_TYPE_UNUSED1:
case NM_DEVICE_TYPE_UNUSED2: