device: set MTU on IP interface

Fixes: 7ba2a058f2
This commit is contained in:
Beniamino Galvani 2015-04-21 17:56:21 +02:00
parent 78c1849b53
commit 0a04be41d4

View file

@ -4218,7 +4218,7 @@ static void
nm_device_set_mtu (NMDevice *self, guint32 mtu)
{
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
int ifindex = nm_device_get_ifindex (self);
int ifindex = nm_device_get_ip_ifindex (self);
if (mtu)
priv->mtu = mtu;