diff --git a/ChangeLog b/ChangeLog index c6fd898473..c656925d28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-08-22 Dan Williams + + Patch from j@bootlab.org: + * src/backends/NetworkManagerDebian.c + - Make the Debian backend work for static IP again + 2005-08-20 Christopher Aillon * gnome/applet/other-network-dialog.c: diff --git a/src/backends/NetworkManagerDebian.c b/src/backends/NetworkManagerDebian.c index 7bc2d2fe6f..5b5e9c3058 100644 --- a/src/backends/NetworkManagerDebian.c +++ b/src/backends/NetworkManagerDebian.c @@ -531,6 +531,8 @@ void* nm_system_device_get_system_config (NMDevice *dev) sys_data->use_dhcp = FALSE; } + sys_data->config = nm_ip4_config_new (); + buf = ifparser_getkey (curr_device, "address"); if (buf) nm_ip4_config_set_address (sys_data->config, inet_addr (buf)); @@ -570,10 +572,10 @@ void* nm_system_device_get_system_config (NMDevice *dev) #if 0 nm_debug ("------ Config (%s)", nm_device_get_iface (dev)); - nm_debug (" DHCP=%d\n", use_dhcp); - nm_debug (" ADDR=%d\n", ip4_address); - nm_debug (" GW=%d\n", ip4_gateway); - nm_debug (" NM=%d\n", ip4_netmask); + nm_debug (" DHCP=%s\n", sys_data->use_dhcp); + nm_debug (" ADDR=%d\n", nm_ip4_config_get_address (sys_data->config)); + nm_debug (" GW=%d\n", nm_ip4_config_get_gateway (sys_data->config)); + nm_debug (" NM=%d\n", nm_ip4_config_get_netmask (sys_data->config)); nm_debug ("---------------------\n"); #endif