mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 17:00:08 +01:00
device: avoid setting MTU to zero if undefined
(cherry picked from commit c44069c10a)
This commit is contained in:
parent
6bd3f2637d
commit
3af5403b3a
1 changed files with 1 additions and 1 deletions
|
|
@ -4488,7 +4488,7 @@ nm_device_set_mtu (NMDevice *self, guint32 mtu)
|
|||
if (priv->ip6_mtu)
|
||||
nm_device_ipv6_set_mtu (self, priv->ip6_mtu);
|
||||
|
||||
if (priv->mtu != nm_platform_link_get_mtu (NM_PLATFORM_GET, ifindex))
|
||||
if (priv->mtu && priv->mtu != nm_platform_link_get_mtu (NM_PLATFORM_GET, ifindex))
|
||||
nm_platform_link_set_mtu (NM_PLATFORM_GET, ifindex, priv->mtu);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue