diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-12-10 15:16:00 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-11 17:49:53 (GMT) |
commit | a676847b396a8f6e212419fd4e45a3bd7362aebf (patch) | |
tree | aa96c3382e1d7334b57a8be75d74fb84b60d390a /drivers/net | |
parent | 89c5fa3369a47db0df904c45c1c26e64c0404430 (diff) | |
download | linux-a676847b396a8f6e212419fd4e45a3bd7362aebf.tar.xz |
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')
-rw-r--r-- | drivers/net/tun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 14a0454..2ac2164 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); |