summaryrefslogtreecommitdiff
path: root/src/core/ppp/nm-ppp-manager.c
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@atmark-techno.com>2022-06-09 16:54:17 +0900
committerBeniamino Galvani <bgalvani@redhat.com>2022-06-09 14:21:10 +0000
commit4d7b494eb3b39f9ff6d20a862a4487200d3954de (patch)
treec92cfc0568ddde6768bf5ce52206beee77dd2dae /src/core/ppp/nm-ppp-manager.c
parent6991333bc0c40ff08070f43dfb398ed69c8dd2f6 (diff)
downloadNetworkManager-4d7b494eb3b39f9ff6d20a862a4487200d3954de.tar.gz
ppp-manager: ip6: set interface mtu based on ppp config
impl_ppp_manager_set_ip4_config always has been setting interface mtu based on ppp configuration: do the same for ip6 in case it matters.
Diffstat (limited to 'src/core/ppp/nm-ppp-manager.c')
-rw-r--r--src/core/ppp/nm-ppp-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ppp/nm-ppp-manager.c b/src/core/ppp/nm-ppp-manager.c
index 9759b9b397..5c2b7681bb 100644
--- a/src/core/ppp/nm-ppp-manager.c
+++ b/src/core/ppp/nm-ppp-manager.c
@@ -642,6 +642,7 @@ impl_ppp_manager_set_ip6_config(NMDBusObject *obj,
nm_auto_unref_l3cd_init NML3ConfigData *l3cd = NULL;
NMPlatformIP6Address address;
struct in6_addr a;
+ guint32 mtu;
NMUtilsIPv6IfaceId iid = NM_UTILS_IPV6_IFACE_ID_INIT;
gboolean has_peer = FALSE;
gs_unref_variant GVariant *config_dict = NULL;
@@ -652,13 +653,14 @@ impl_ppp_manager_set_ip6_config(NMDBusObject *obj,
nm_clear_g_source(&priv->ppp_timeout_handler);
- if (!set_ip_config_common(self, config_dict, NULL))
+ if (!set_ip_config_common(self, config_dict, &mtu))
goto out;
l3cd = nm_l3_config_data_new(nm_platform_get_multi_idx(NM_PLATFORM_GET),
priv->ifindex,
NM_IP_CONFIG_SOURCE_PPP);
+ nm_l3_config_data_set_mtu(l3cd, mtu);
nm_l3_config_data_set_dns_priority(l3cd, AF_INET6, 0);
address = (NMPlatformIP6Address){