summaryrefslogtreecommitdiff
path: root/src/devices/nm-device-macvlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/nm-device-macvlan.c')
-rw-r--r--src/devices/nm-device-macvlan.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c
index 9d3c3c370b..94206716b3 100644
--- a/src/devices/nm-device-macvlan.c
+++ b/src/devices/nm-device-macvlan.c
@@ -156,7 +156,7 @@ parent_changed_notify (NMDevice *device,
if (new_parent) {
priv->parent_state_id = g_signal_connect (new_parent,
- "state-changed",
+ NM_DEVICE_STATE_CHANGED,
G_CALLBACK (parent_state_changed),
device);
@@ -489,24 +489,6 @@ act_stage1_prepare (NMDevice *dev, NMDeviceStateReason *reason)
return NM_ACT_STAGE_RETURN_SUCCESS;
}
-static void
-ip4_config_pre_commit (NMDevice *device, NMIP4Config *config)
-{
- NMConnection *connection;
- NMSettingWired *s_wired;
- guint32 mtu;
-
- connection = nm_device_get_applied_connection (device);
- g_assert (connection);
-
- s_wired = nm_connection_get_setting_wired (connection);
- if (s_wired) {
- mtu = nm_setting_wired_get_mtu (s_wired);
- if (mtu)
- nm_ip4_config_set_mtu (config, mtu, NM_IP_CONFIG_SOURCE_USER);
- }
-}
-
/*****************************************************************************/
static void
@@ -570,7 +552,7 @@ nm_device_macvlan_class_init (NMDeviceMacvlanClass *klass)
device_class->connection_type = NM_SETTING_MACVLAN_SETTING_NAME;
device_class->create_and_realize = create_and_realize;
device_class->get_generic_capabilities = get_generic_capabilities;
- device_class->ip4_config_pre_commit = ip4_config_pre_commit;
+ device_class->get_configured_mtu = nm_device_get_configured_mtu_for_wired;
device_class->is_available = is_available;
device_class->link_changed = link_changed;
device_class->parent_changed_notify = parent_changed_notify;