mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 13:50:13 +01:00
tun,vxlan: add the CAP_IS_SOFTWARE capability
Software devices must report the NM_DEVICE_CAP_IS_SOFTWARE capability in order to be properly activated. Add the flag to NMDeviceTun and NMDeviceVxlan. https://bugzilla.gnome.org/show_bug.cgi?id=767846
This commit is contained in:
parent
18cd265b2d
commit
f2d5c8d7f8
2 changed files with 14 additions and 0 deletions
|
|
@ -104,6 +104,12 @@ reload_tun_properties (NMDeviceTun *self)
|
|||
g_object_thaw_notify (object);
|
||||
}
|
||||
|
||||
static NMDeviceCapabilities
|
||||
get_generic_capabilities (NMDevice *dev)
|
||||
{
|
||||
return NM_DEVICE_CAP_IS_SOFTWARE;
|
||||
}
|
||||
|
||||
static void
|
||||
link_changed (NMDevice *device, NMPlatformLink *info)
|
||||
{
|
||||
|
|
@ -430,6 +436,7 @@ nm_device_tun_class_init (NMDeviceTunClass *klass)
|
|||
device_class->complete_connection = complete_connection;
|
||||
device_class->check_connection_compatible = check_connection_compatible;
|
||||
device_class->create_and_realize = create_and_realize;
|
||||
device_class->get_generic_capabilities = get_generic_capabilities;
|
||||
device_class->realize_start_notify = realize_start_notify;
|
||||
device_class->unrealize_notify = unrealize_notify;
|
||||
device_class->update_connection = update_connection;
|
||||
|
|
|
|||
|
|
@ -137,6 +137,12 @@ update_properties (NMDevice *device)
|
|||
g_object_thaw_notify (object);
|
||||
}
|
||||
|
||||
static NMDeviceCapabilities
|
||||
get_generic_capabilities (NMDevice *dev)
|
||||
{
|
||||
return NM_DEVICE_CAP_IS_SOFTWARE;
|
||||
}
|
||||
|
||||
static void
|
||||
link_changed (NMDevice *device, NMPlatformLink *info)
|
||||
{
|
||||
|
|
@ -648,6 +654,7 @@ nm_device_vxlan_class_init (NMDeviceVxlanClass *klass)
|
|||
device_class->create_and_realize = create_and_realize;
|
||||
device_class->check_connection_compatible = check_connection_compatible;
|
||||
device_class->complete_connection = complete_connection;
|
||||
device_class->get_generic_capabilities = get_generic_capabilities;
|
||||
device_class->update_connection = update_connection;
|
||||
device_class->act_stage1_prepare = act_stage1_prepare;
|
||||
device_class->ip4_config_pre_commit = ip4_config_pre_commit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue