NetworkManager debs + dhcp

so why did dhclient not get called...

in fuction nm_device_activation_configure_ip from

nm_device_config_get_use_dhcp (dev) always returns FALSE, since 
dev->config_info.use_dhcp is never set to TRUE,

comparing the RedHat and Debian backend it is clear:
needs to be updated.
	g_return_if_fail (dev != NULL);

	/* We use DHCP on an interface unless told not to */
	nm_device_config_set_use_dhcp (dev, TRUE);
	nm_device_config_set_ip4_address (dev, 0);
	nm_device_config_set_ip4_gateway (dev, 0);
	nm_device_config_set_ip4_netmask (dev, 0);
	nm_device_config_set_ip4_broadcast (dev, 0);
to make it use dhcp, until the static ip part is working, would work.

why is the current RedHat backend parsing the static configuration 
for redhat, /etc/sysconfig/network-scripts/ifcfg-%s?

to my understanding the plan for NetworkManager was not to use the
configuration of the underlying distribution and come up with
a generic NetworkManager configuration system. the current
approach as seen in the redhat backend does not work for settings per
wireless network, but saves the static ip again per device, this is


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]