fix for MAC address reading



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]