From 8ca6e412c1c0214603503521b6461e47b13be373 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 10 Nov 2015 22:03:57 +0100 Subject: libnm-glib: add support for TUN devices Since libnm is the preferred way to interact with NM now, we don't want to add new device types to libnm-glib. Make libnm-glib recognize TUN devices as generic ones and modify NMDeviceGeneric to use the correct D-Bus interface based on the actual device type. --- libnm-util/NetworkManager.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libnm-util/NetworkManager.h') diff --git a/libnm-util/NetworkManager.h b/libnm-util/NetworkManager.h index d83e4ab5a5..71862c42eb 100644 --- a/libnm-util/NetworkManager.h +++ b/libnm-util/NetworkManager.h @@ -151,6 +151,7 @@ typedef enum { * @NM_DEVICE_TYPE_ADSL: ADSL modem * @NM_DEVICE_TYPE_BRIDGE: a bridge master interface * @NM_DEVICE_TYPE_TEAM: a team master interface + * @NM_DEVICE_TYPE_TUN: a TUN/TAP interface * * #NMDeviceType values indicate the type of hardware represented by * an #NMDevice. @@ -174,6 +175,7 @@ typedef enum { NM_DEVICE_TYPE_BRIDGE = 13, NM_DEVICE_TYPE_GENERIC = 14, NM_DEVICE_TYPE_TEAM = 15, + NM_DEVICE_TYPE_TUN = 16, } NMDeviceType; /** -- cgit v1.2.3