2008-03-13 Tambet Ingo <tambet@gmail.com>

* system-settings/plugins/ifcfg-suse/plugin.c (update_default_routes):
	Adapt the changes of NMSettingIP4Config.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3453 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Tambet Ingo 2008-03-13 22:07:51 +00:00
parent 2a9cfa049e
commit 24adb16ef6
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-03-13 Tambet Ingo <tambet@gmail.com>
* system-settings/plugins/ifcfg-suse/plugin.c (update_default_routes):
Adapt the changes of NMSettingIP4Config.
2008-03-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c

View file

@ -240,7 +240,7 @@ update_default_routes (NMSystemConfigInterface *config, gboolean emit_updated)
for (iter = priv->connections; iter; iter = iter->next) {
connection = NM_CONNECTION (iter->data);
ip4_setting = (NMSettingIP4Config *) nm_connection_get_setting (connection, NM_TYPE_SETTING_IP4_CONFIG);
if (ip4_setting && ip4_setting->manual) {
if (ip4_setting && !strcmp (ip4_setting->method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL)) {
got_manual = TRUE;
break;
}
@ -256,7 +256,7 @@ update_default_routes (NMSystemConfigInterface *config, gboolean emit_updated)
for (iter = priv->connections; iter; iter = iter->next) {
connection = NM_CONNECTION (iter->data);
ip4_setting = (NMSettingIP4Config *) nm_connection_get_setting (connection, NM_TYPE_SETTING_IP4_CONFIG);
if (ip4_setting && ip4_setting->manual) {
if (ip4_setting && !strcmp (ip4_setting->method, NM_SETTING_IP4_CONFIG_METHOD_MANUAL)) {
GSList *address_iter;
for (address_iter = ip4_setting->addresses; address_iter; address_iter = address_iter->next) {