trivial: clarify has_ip_config()
Make it more explicit that it returns TRUE for UNMANAGED state.
This commit is contained in:
@@ -4963,9 +4963,11 @@ has_ip_config (NMDevice *self)
|
||||
if (priv->ip4_state != IP_DONE && priv->ip6_state != IP_DONE)
|
||||
return FALSE;
|
||||
|
||||
return ( ( priv->state >= NM_DEVICE_STATE_IP_CONFIG
|
||||
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING)
|
||||
|| (priv->state == NM_DEVICE_STATE_UNMANAGED));
|
||||
if (priv->state == NM_DEVICE_STATE_UNMANAGED)
|
||||
return TRUE;
|
||||
|
||||
return (priv->state >= NM_DEVICE_STATE_IP_CONFIG
|
||||
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user