Commit a6978152 authored by Robert Love's avatar Robert Love Committed by Robert Love
Browse files

2005-10-04  Robert Love  <rml@novell.com>

	* src/nm-dbus-device.c: Use iw_ether_ntop(), not ether_ntoa_r(), to
	  convert an ether_addr structure's MAC into a string, because the
	  latter will drop leading zero's and uses lower-case, e.g. 7:3b:4
	  versus 07:3B:04, while the former will not.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@993 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 9b316c71
2005-10-04 Robert Love <rml@novell.com>
* src/nm-dbus-device.c: Use iw_ether_ntop(), not ether_ntoa_r(), to
convert an ether_addr structure's MAC into a string, because the
latter will drop leading zero's and uses lower-case, e.g. 7:3b:4
versus 07:3B:04, while the former will not.
2005-10-04 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
......
......@@ -121,7 +121,7 @@ static DBusMessage *nm_dbus_device_get_hw_address (DBusConnection *connection, D
nm_device_get_hw_address (dev, &addr);
memset (char_addr, 0, 20);
ether_ntoa_r (&addr, &char_addr[0]);
iw_ether_ntop (&addr, char_addr);
dbus_message_append_args (reply, DBUS_TYPE_STRING, &ptr, DBUS_TYPE_INVALID);
}
......@@ -353,7 +353,7 @@ static DBusMessage *nm_dbus_device_get_properties (DBusConnection *connection, D
nm_device_get_hw_address (dev, &hw_addr);
memset (hw_addr_buf, 0, 20);
ether_ntoa_r (&hw_addr, &hw_addr_buf[0]);
iw_ether_ntop (&hw_addr, hw_addr_buf);
ip4config = nm_device_get_ip4_config (dev);
if (ip4config)
......
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