mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 07:10:07 +01:00
trivial: clarify has_ip_config()
Make it more explicit that it returns TRUE for UNMANAGED state.
This commit is contained in:
parent
46abdf254c
commit
f548a49782
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue