fix for MAC address reading
- From: Kay Sievers <kay sievers vrfy org>
- To: networkmanager-list gnome org
- Subject: fix for MAC address reading
- Date: Tue, 7 Jun 2005 20:15:21 +0200
This makes NM reading the MAC address for real instead of only a few
bytes + garbage.
Kay
Index: src/NetworkManagerDevice.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/NetworkManagerDevice.c,v
retrieving revision 1.133
diff -u -p -r1.133 NetworkManagerDevice.c
--- src/NetworkManagerDevice.c 16 May 2005 01:28:45 -0000 1.133
+++ src/NetworkManagerDevice.c 7 Jun 2005 18:11:56 -0000
@@ -1548,7 +1548,7 @@ void nm_device_update_hw_address (NMDevi
if (err != 0)
return;
- memcpy (&(dev->hw_addr), &(req.ifr_hwaddr), sizeof (struct ether_addr));
+ memcpy (&(dev->hw_addr), &(req.ifr_hwaddr.sa_data), sizeof (struct ether_addr));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]