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)
|
if (priv->ip4_state != IP_DONE && priv->ip6_state != IP_DONE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return ( ( priv->state >= NM_DEVICE_STATE_IP_CONFIG
|
if (priv->state == NM_DEVICE_STATE_UNMANAGED)
|
||||||
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING)
|
return TRUE;
|
||||||
|| (priv->state == NM_DEVICE_STATE_UNMANAGED));
|
|
||||||
|
return (priv->state >= NM_DEVICE_STATE_IP_CONFIG
|
||||||
|
&& priv->state <= NM_DEVICE_STATE_DEACTIVATING);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user