core: expose NMIPAddress instances with prefix zero on D-Bus

Since commit 44768f0311, we skip
exposing NMIPAddress instances with prefix zero. Now, that is
supported and we can remove the check.
This commit is contained in:
Thomas Haller 2016-04-11 12:49:47 +02:00
parent 6b8729a599
commit 420bd611fd
2 changed files with 0 additions and 8 deletions

View file

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

View file

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