2008-05-29 Dan Williams <dcbw@redhat.com>
* src/dnsmasq-manager/nm-dnsmasq-manager.c src/dnsmasq-manager/nm-dnsmasq-manager.h - (nm_dnsmasq_manager_new): move iface argument here - (constructor): remove, not needed - (get_pidfile_for_iface, create_dm_cmd_line, kill_existing_for_iface, nm_dnsmasq_manager_start, nm_dnsmasq_manager_stop): use priv->pidfile * src/nm-device.c - (real_act_stage4_get_ip4_config, nm_device_activate_stage5_ip_config_commit): fix for dnsmasq manager changes git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3712 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -701,7 +701,7 @@ real_act_stage4_get_ip4_config (NMDevice *self,
|
||||
nm_utils_merge_ip4_config (*config, s_ip4);
|
||||
} else if (!strcmp (s_ip4->method, NM_SETTING_IP4_CONFIG_METHOD_SHARED)) {
|
||||
*config = nm_device_new_ip4_shared_config (self);
|
||||
priv->dnsmasq_manager = nm_dnsmasq_manager_new ();
|
||||
priv->dnsmasq_manager = nm_dnsmasq_manager_new (nm_device_get_ip_iface (self));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -895,7 +895,7 @@ nm_device_activate_stage5_ip_config_commit (gpointer user_data)
|
||||
if (s_ip4 && !strcmp (s_ip4->method, "shared")) {
|
||||
GError *error = NULL;
|
||||
|
||||
if (!nm_dnsmasq_manager_start (priv->dnsmasq_manager, nm_device_get_ip_iface (self), &error)) {
|
||||
if (!nm_dnsmasq_manager_start (priv->dnsmasq_manager, &error)) {
|
||||
nm_warning ("(%s): failed to start dnsmasq: %s", iface, error->message);
|
||||
g_error_free (error);
|
||||
nm_device_state_changed (self, NM_DEVICE_STATE_FAILED);
|
||||
|
Reference in New Issue
Block a user