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-util | |
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-util')
-rw-r--r-- | libnm-util/NetworkManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; /** |