mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-24 21:50:34 +01:00
libnm-glib: add support for IP tunnel devices as generic ones
This commit is contained in:
parent
e2da055f90
commit
818f7f5724
2 changed files with 3 additions and 0 deletions
|
|
@ -321,6 +321,7 @@ _nm_device_gtype_from_dtype (NMDeviceType dtype)
|
|||
return NM_TYPE_DEVICE_VLAN;
|
||||
case NM_DEVICE_TYPE_GENERIC:
|
||||
case NM_DEVICE_TYPE_TUN:
|
||||
case NM_DEVICE_TYPE_IP_TUNNEL:
|
||||
return NM_TYPE_DEVICE_GENERIC;
|
||||
default:
|
||||
g_warning ("Unknown device type %d", dtype);
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ typedef enum {
|
|||
* @NM_DEVICE_TYPE_BRIDGE: a bridge master interface
|
||||
* @NM_DEVICE_TYPE_TEAM: a team master interface
|
||||
* @NM_DEVICE_TYPE_TUN: a TUN/TAP interface
|
||||
* @NM_DEVICE_TYPE_IP_TUNNEL: an IP tunnel interface
|
||||
*
|
||||
* #NMDeviceType values indicate the type of hardware represented by
|
||||
* an #NMDevice.
|
||||
|
|
@ -176,6 +177,7 @@ typedef enum {
|
|||
NM_DEVICE_TYPE_GENERIC = 14,
|
||||
NM_DEVICE_TYPE_TEAM = 15,
|
||||
NM_DEVICE_TYPE_TUN = 16,
|
||||
NM_DEVICE_TYPE_IP_TUNNEL = 17,
|
||||
} NMDeviceType;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue