summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_gre.c
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-02-15 06:45:39 +0000
committerDavid S. Miller <davem@davemloft.net>2012-02-15 15:34:16 -0500
commitf2cedb63df14342ad40a8b5b324fc5d94a60b665 (patch)
treebebdbe0f98c216e59849bc3adb85f8abf5aadc2b /net/ipv4/ip_gre.c
parenta1e785e02bb53573443c7e58a444cef1a049f6ce (diff)
downloadlinux-f2cedb63df14342ad40a8b5b324fc5d94a60b665.tar.gz
linux-f2cedb63df14342ad40a8b5b324fc5d94a60b665.tar.bz2
linux-f2cedb63df14342ad40a8b5b324fc5d94a60b665.zip
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/ipv4/ip_gre.c')
-rw-r--r--net/ipv4/ip_gre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 0286d78c589c..b59414a0c1ee 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -1536,7 +1536,7 @@ static int ipgre_newlink(struct net *src_net, struct net_device *dev, struct nla
return -EEXIST;
if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS])
- random_ether_addr(dev->dev_addr);
+ eth_hw_addr_random(dev);
mtu = ipgre_tunnel_bind_dev(dev);
if (!tb[IFLA_MTU])