mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-19 03:00:55 +01:00
core: expose NMIPAddress instances with prefix zero on D-Bus
Since commit44768f0311, we skip exposing NMIPAddress instances with prefix zero. Now, that is supported and we can remove the check. (cherry picked from commit420bd611fd)
This commit is contained in:
parent
54df309a9f
commit
7b280fa162
2 changed files with 0 additions and 8 deletions
|
|
@ -567,10 +567,6 @@ nm_ip4_config_create_setting (const NMIP4Config *config)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* FIXME: NMIPAddress doesn't support zero prefixes. */
|
||||
if (address->plen == 0)
|
||||
continue;
|
||||
|
||||
/* Static address found. */
|
||||
if (!method)
|
||||
method = NM_SETTING_IP4_CONFIG_METHOD_MANUAL;
|
||||
|
|
|
|||
|
|
@ -556,10 +556,6 @@ nm_ip6_config_create_setting (const NMIP6Config *config)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* FIXME: NMIPAddress does not support zero prefixes. */
|
||||
if (address->plen == 0)
|
||||
continue;
|
||||
|
||||
/* Static address found. */
|
||||
if (!method || strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL) == 0)
|
||||
method = NM_SETTING_IP6_CONFIG_METHOD_MANUAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue