patch-1.3.44 linux/net/netrom/nr_dev.c
Next file: linux/net/socket.c
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Nov 24 16:39:55 1995
- Orig file:
v1.3.43/linux/net/netrom/nr_dev.c
- Orig date:
Fri Nov 17 08:42:34 1995
diff -u --recursive --new-file v1.3.43/linux/net/netrom/nr_dev.c linux/net/netrom/nr_dev.c
@@ -14,6 +14,7 @@
*
* History
* NET/ROM 001 Jonathan(G4KLX) Cloned from loopback.c
+ * NET/ROM 002 Steve Whitehouse(GW7RRM) fixed the set_mac_address
*/
#include <linux/config.h>
@@ -140,7 +141,8 @@
static int nr_set_mac_address(struct device *dev, void *addr)
{
- memcpy(dev->dev_addr, addr, dev->addr_len);
+ struct sockaddr *sa=addr;
+ memcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this