diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-10 22:03:57 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2015-11-25 11:39:57 +0100 |
commit | 8ca6e412c1c0214603503521b6461e47b13be373 (patch) | |
tree | 796befc3d92afe088f3721926eab579d4ac436fc /libnm-glib/nm-device.c | |
parent | 33e76cf0e04534e8ebb278f518b2ed2ec69d4d15 (diff) | |
download | NetworkManager-8ca6e412c1c0214603503521b6461e47b13be373.tar.gz |
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.
Diffstat (limited to 'libnm-glib/nm-device.c')
-rw-r--r-- | libnm-glib/nm-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index 7731183e7b..aac94fb1dc 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -320,6 +320,7 @@ _nm_device_gtype_from_dtype (NMDeviceType dtype) case NM_DEVICE_TYPE_VLAN: return NM_TYPE_DEVICE_VLAN; case NM_DEVICE_TYPE_GENERIC: + case NM_DEVICE_TYPE_TUN: return NM_TYPE_DEVICE_GENERIC; default: g_warning ("Unknown device type %d", dtype); |