mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 06:48:00 +02:00
core: allow IPv4 to fail by default
(comments by dcbw) This allows out-of-the-box connectivity on IPv6-only networks. Once caveat is that connections where the user currently expects no IPv4 connectivity to terminate the connection and retry will no longer do so until IPv6 also times out, and if that network where IPv4 is expected to fail also has an IPv6 router sending advertisements, the connection will succeed instead of failing. That can be resolved by setting the right bit in the connection's config file; and it's expected that the number of users who expect IPv4 failure on a network with usable IPv6 connectivity is quite small compared to the benefit of OOB IPv6 connectivity.
This commit is contained in:
parent
b480e5a4f2
commit
4abb300c96
2 changed files with 2 additions and 2 deletions
|
|
@ -1231,7 +1231,7 @@ nm_setting_ip4_config_class_init (NMSettingIP4ConfigClass *setting_class)
|
|||
"this property to TRUE allows the overall network "
|
||||
"configuration to succeed if IPv4 configuration "
|
||||
"fails but IPv6 configuration completes successfully.",
|
||||
FALSE,
|
||||
TRUE,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | NM_SETTING_PARAM_SERIALIZE));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1266,7 +1266,7 @@ make_ip4_setting (shvarFile *ifcfg,
|
|||
NM_SETTING_IP4_CONFIG_IGNORE_AUTO_DNS, !svTrueValue (ifcfg, "PEERDNS", TRUE),
|
||||
NM_SETTING_IP4_CONFIG_IGNORE_AUTO_ROUTES, !svTrueValue (ifcfg, "PEERROUTES", TRUE),
|
||||
NM_SETTING_IP4_CONFIG_NEVER_DEFAULT, never_default,
|
||||
NM_SETTING_IP4_CONFIG_MAY_FAIL, !svTrueValue (ifcfg, "IPV4_FAILURE_FATAL", TRUE),
|
||||
NM_SETTING_IP4_CONFIG_MAY_FAIL, !svTrueValue (ifcfg, "IPV4_FAILURE_FATAL", FALSE),
|
||||
NULL);
|
||||
|
||||
if (strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_DISABLED) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue