summaryrefslogtreecommitdiff
path: root/src/libnm-core-public
diff options
context:
space:
mode:
authorFrederic Martinsons <frederic.martinsons@unabiz.com>2023-01-03 13:33:49 +0100
committerThomas Haller <thaller@redhat.com>2023-01-09 09:35:52 +0100
commit4509c303fa6f9861a9242e68de510d62e747c273 (patch)
treec8aa353c71a97173afaa0dc594e094ef567cd6c6 /src/libnm-core-public
parent2b23c2cab4c1386a0715f1714d1b3251dbedbc51 (diff)
downloadNetworkManager-4509c303fa6f9861a9242e68de510d62e747c273.tar.gz
all: add new "ipv[46].auto-route-ext-gw" setting
For external gateway route management. This setting allows an user to deactivate the automatic route addition to the external gateway. It can be especially useful when a VPN inside another VPN is used. Signed-off-by: Frederic Martinsons <frederic.martinsons@unabiz.com> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/204 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1491
Diffstat (limited to 'src/libnm-core-public')
-rw-r--r--src/libnm-core-public/nm-setting-ip-config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libnm-core-public/nm-setting-ip-config.h b/src/libnm-core-public/nm-setting-ip-config.h
index ca65fb592f..d52cf1474b 100644
--- a/src/libnm-core-public/nm-setting-ip-config.h
+++ b/src/libnm-core-public/nm-setting-ip-config.h
@@ -339,6 +339,7 @@ char *nm_ip_routing_rule_to_string(const NMIPRoutingRule *self,
#define NM_SETTING_IP_CONFIG_REQUIRED_TIMEOUT "required-timeout"
#define NM_SETTING_IP_CONFIG_DHCP_IAID "dhcp-iaid"
#define NM_SETTING_IP_CONFIG_DHCP_REJECT_SERVERS "dhcp-reject-servers"
+#define NM_SETTING_IP_CONFIG_AUTO_ROUTE_EXT_GW "auto-route-ext-gw"
/* these are not real GObject properties. */
#define NM_SETTING_IP_CONFIG_ROUTING_RULES "routing-rules"
@@ -496,6 +497,8 @@ NM_AVAILABLE_IN_1_28
void nm_setting_ip_config_remove_dhcp_reject_server(NMSettingIPConfig *setting, guint idx);
NM_AVAILABLE_IN_1_28
void nm_setting_ip_config_clear_dhcp_reject_servers(NMSettingIPConfig *setting);
+NM_AVAILABLE_IN_1_42
+NMTernary nm_setting_ip_config_get_auto_route_ext_gw(NMSettingIPConfig *setting);
G_END_DECLS