patch-2.0.12 linux/drivers/net/plip.c
Next file: linux/drivers/scsi/fdomain.c
Previous file: linux/drivers/net/eepro.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Fri Aug 9 13:33:52 1996
- Orig file:
v2.0.11/linux/drivers/net/plip.c
- Orig date:
Sun May 19 14:57:51 1996
diff -u --recursive --new-file v2.0.11/linux/drivers/net/plip.c linux/drivers/net/plip.c
@@ -873,9 +873,9 @@
return 0;
}
- for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
+ for (i=0; i < ETH_ALEN - sizeof(u32); i++)
eth->h_dest[i] = 0xfc;
- memcpy(&(eth->h_dest[i]), &dst, sizeof(unsigned long));
+ *(u32 *)(eth->h_dest+i) = dst;
return 0;
}
@@ -964,9 +964,9 @@
nl->is_deferred = 0;
/* Fill in the MAC-level header. */
- for (i=0; i < ETH_ALEN - sizeof(unsigned long); i++)
+ for (i=0; i < ETH_ALEN - sizeof(u32); i++)
dev->dev_addr[i] = 0xfc;
- memcpy(&(dev->dev_addr[i]), &dev->pa_addr, sizeof(unsigned long));
+ *(u32 *)(dev->dev_addr+i) = dev->pa_addr;
dev->interrupt = 0;
dev->start = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov