patch-1.3.44 linux/drivers/net/slip.c
Next file: linux/drivers/net/sunlance.c
Previous file: linux/drivers/net/skeleton.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Fri Nov 24 16:39:53 1995
- Orig file:
v1.3.43/linux/drivers/net/slip.c
- Orig date:
Thu Nov 9 11:23:50 1995
diff -u --recursive --new-file v1.3.43/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -998,7 +998,8 @@
static int
sl_set_dev_mac_address(struct device *dev, void *addr)
{
- memcpy(dev->dev_addr, addr, AX25_ADDR_LEN);
+ struct sockaddr *sa=addr;
+ memcpy(dev->dev_addr, sa->sa_data, AX25_ADDR_LEN);
return 0;
}
#endif /* CONFIG_AX25 */
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