aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/plip/plip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/plip/plip.c')
-rw-r--r--drivers/net/plip/plip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/plip/plip.c b/drivers/net/plip/plip.c
index 1f7bef90b467..7b4ff35c8bf7 100644
--- a/drivers/net/plip/plip.c
+++ b/drivers/net/plip/plip.c
@@ -1002,7 +1002,7 @@ plip_rewrite_address(const struct net_device *dev, struct ethhdr *eth)
1002 /* Any address will do - we take the first */ 1002 /* Any address will do - we take the first */
1003 const struct in_ifaddr *ifa = in_dev->ifa_list; 1003 const struct in_ifaddr *ifa = in_dev->ifa_list;
1004 if (ifa) { 1004 if (ifa) {
1005 memcpy(eth->h_source, dev->dev_addr, 6); 1005 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN);
1006 memset(eth->h_dest, 0xfc, 2); 1006 memset(eth->h_dest, 0xfc, 2);
1007 memcpy(eth->h_dest+2, &ifa->ifa_address, 4); 1007 memcpy(eth->h_dest+2, &ifa->ifa_address, 4);
1008 } 1008 }