summaryrefslogtreecommitdiff
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-12-10 15:16:00 +0000
committerDavid S. Miller <davem@davemloft.net>2012-12-11 12:49:53 -0500
commita676847b396a8f6e212419fd4e45a3bd7362aebf (patch)
treeaa96c3382e1d7334b57a8be75d74fb84b60d390a /drivers/net/tun.c
parent89c5fa3369a47db0df904c45c1c26e64c0404430 (diff)
downloadlinux-3.10-a676847b396a8f6e212419fd4e45a3bd7362aebf.tar.gz
linux-3.10-a676847b396a8f6e212419fd4e45a3bd7362aebf.tar.bz2
linux-3.10-a676847b396a8f6e212419fd4e45a3bd7362aebf.zip
tun: allow setting ethernet addresss while running
This is a pure software device, and ok with live address change. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r--drivers/net/tun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 14a04543cd9..2ac2164a1e3 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -849,6 +849,7 @@ static void tun_net_init(struct net_device *dev)
/* Ethernet TAP Device */
ether_setup(dev);
dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+ dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
eth_hw_addr_random(dev);