diff options
Diffstat (limited to 'src/devices/nm-device-tun.c')
-rw-r--r-- | src/devices/nm-device-tun.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c index 77b46a599c..f8e515858e 100644 --- a/src/devices/nm-device-tun.c +++ b/src/devices/nm-device-tun.c @@ -359,6 +359,33 @@ unrealize_notify (NMDevice *device) update_properties_from_struct (NM_DEVICE_TUN (device), NULL); } +static gboolean +can_reapply_change (NMDevice *device, + const char *setting_name, + NMSetting *s_old, + NMSetting *s_new, + GHashTable *diffs, + GError **error) +{ + NMDeviceClass *device_class; + + if (nm_streq (setting_name, NM_SETTING_WIRED_SETTING_NAME)) { + return nm_device_hash_check_invalid_keys (diffs, + NM_SETTING_WIRED_SETTING_NAME, + error, + /* reapplied with IP config */ + NM_SETTING_WIRED_MTU); + } + + device_class = NM_DEVICE_CLASS (nm_device_tun_parent_class); + return device_class->can_reapply_change (device, + setting_name, + s_old, + s_new, + diffs, + error); +} + /*****************************************************************************/ static void @@ -440,6 +467,7 @@ nm_device_tun_class_init (NMDeviceTunClass *klass) device_class->connection_type_check_compatible = NM_SETTING_TUN_SETTING_NAME; device_class->link_types = NM_DEVICE_DEFINE_LINK_TYPES (NM_LINK_TYPE_TUN); + device_class->can_reapply_change = can_reapply_change; device_class->link_changed = link_changed; device_class->complete_connection = complete_connection; device_class->check_connection_compatible = check_connection_compatible; |