Commit 878a275c authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Cosimo Cecchi

reviewed by Vincent Untz and Tambet Ingo.

2008-07-28  Cosimo Cecchi  <cosimoc@gnome.org>

	reviewed by Vincent Untz and Tambet Ingo.

	* main-menu/src/network-status-agent.c: (nm_get_device_info):
	Some more NetworkManager 0.7 API breakage.

svn path=/trunk/; revision=485
parent 43bfb9a6
2008-07-28 Cosimo Cecchi <cosimoc@gnome.org>
reviewed by Vincent Untz and Tambet Ingo.
* main-menu/src/network-status-agent.c: (nm_get_device_info):
Some more NetworkManager 0.7 API breakage.
2008-07-24 Cosimo Cecchi <cosimoc@gnome.org>
http://bugzilla.gnome.org/show_bug.cgi?id=544539
......
......@@ -218,11 +218,11 @@ nm_get_device_info (NetworkStatusAgent * agent, NMDevice * device)
def_addr = addresses->data;
info->ip4_addr = ip4_address_as_string (def_addr->address);
info->subnet_mask = ip4_address_as_string (def_addr->netmask);
info->subnet_mask = ip4_address_as_string (nm_utils_ip4_prefix_to_netmask (def_addr->prefix));
info->route = ip4_address_as_string (def_addr->gateway);
network = ntohl (def_addr->address) & ntohl (def_addr->netmask);
hostmask = ~ntohl (def_addr->netmask);
network = ntohl (def_addr->address) & ntohl (nm_utils_ip4_prefix_to_netmask (def_addr->prefix));
hostmask = ~ntohl (nm_utils_ip4_prefix_to_netmask (def_addr->prefix));
bcast = htonl (network | hostmask);
info->broadcast = ip4_address_as_string (bcast);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment