mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
core: shared connections don't require a carrier
They are effectively static connections since the address is manually assigned, so they do not require a carrier.
This commit is contained in:
parent
82d62c2c4e
commit
07e086dd0d
1 changed files with 2 additions and 1 deletions
|
|
@ -6320,7 +6320,8 @@ connection_requires_carrier (NMConnection *connection)
|
|||
|
||||
method = nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP4_CONFIG);
|
||||
if ( strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL) != 0
|
||||
&& strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_DISABLED) != 0) {
|
||||
&& strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_DISABLED) != 0
|
||||
&& strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_SHARED) != 0) {
|
||||
ip4_carrier_wanted = TRUE;
|
||||
|
||||
/* If IPv4 wants a carrier and cannot fail, the whole connection
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue