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:
Dan Williams 2014-10-13 10:24:56 -05:00
parent 82d62c2c4e
commit 07e086dd0d

View file

@ -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