aboutsummaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_eth.c
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-15 01:45:39 -0500
committerDavid S. Miller <davem@davemloft.net>2012-02-15 15:34:16 -0500
commitf2cedb63df14342ad40a8b5b324fc5d94a60b665 (patch)
treebebdbe0f98c216e59849bc3adb85f8abf5aadc2b /net/l2tp/l2tp_eth.c
parenta1e785e02bb53573443c7e58a444cef1a049f6ce (diff)
net: replace random_ether_addr() with eth_hw_addr_random()
Replace usage of random_ether_addr() with eth_hw_addr_random() to set addr_assign_type correctly to NET_ADDR_RANDOM. Change the trivial cases. v2: adapt to renamed eth_hw_addr_random() Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_eth.c')
-rw-r--r--net/l2tp/l2tp_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index d2726a74597d..63fe5f353f04 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -64,7 +64,7 @@ static int l2tp_eth_dev_init(struct net_device *dev)
64 struct l2tp_eth *priv = netdev_priv(dev); 64 struct l2tp_eth *priv = netdev_priv(dev);
65 65
66 priv->dev = dev; 66 priv->dev = dev;
67 random_ether_addr(dev->dev_addr); 67 eth_hw_addr_random(dev);
68 memset(&dev->broadcast[0], 0xff, 6); 68 memset(&dev->broadcast[0], 0xff, 6);
69 69
70 return 0; 70 return 0;