diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-15 01:45:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-15 15:34:16 -0500 |
commit | f2cedb63df14342ad40a8b5b324fc5d94a60b665 (patch) | |
tree | bebdbe0f98c216e59849bc3adb85f8abf5aadc2b /drivers/net/tun.c | |
parent | a1e785e02bb53573443c7e58a444cef1a049f6ce (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 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 93c5d72711b0..2c5d34957c57 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -531,7 +531,7 @@ static void tun_net_init(struct net_device *dev) | |||
531 | ether_setup(dev); | 531 | ether_setup(dev); |
532 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; | 532 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; |
533 | 533 | ||
534 | random_ether_addr(dev->dev_addr); | 534 | eth_hw_addr_random(dev); |
535 | 535 | ||
536 | dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */ | 536 | dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */ |
537 | break; | 537 | break; |