From 37040a0db24bc81515e7215a7469d0f94b60a577 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 12 Feb 2026 17:23:53 +0100 Subject: [PATCH] core: emit warning for unreachable gateways --- src/core/devices/nm-device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c index f3f09db18c..9adcbd67f0 100644 --- a/src/core/devices/nm-device.c +++ b/src/core/devices/nm-device.c @@ -3684,6 +3684,7 @@ nm_device_create_l3_config_data_from_connection(NMDevice *self, NMConnection *co { NML3ConfigData *l3cd; int ifindex; + gs_free char *gw_warning = NULL; nm_assert(NM_IS_DEVICE(self)); nm_assert(!connection || NM_IS_CONNECTION(connection)); @@ -3704,6 +3705,10 @@ nm_device_create_l3_config_data_from_connection(NMDevice *self, NMConnection *co nm_l3_config_data_set_ip6_privacy(l3cd, _prop_get_ipv6_ip6_privacy(self, connection)); nm_l3_config_data_set_mptcp_flags(l3cd, _prop_get_connection_mptcp_flags(self, connection)); + gw_warning = nm_connection_get_unreachable_gateways_warning(connection, FALSE); + if (gw_warning) + _LOGW(LOGD_IP, "%s", gw_warning); + return l3cd; }