From: stephen hemminger Date: Mon, 10 Dec 2012 15:16:00 +0000 (+0000) Subject: tun: allow setting ethernet addresss while running X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a676847b396a8f6e212419fd4e45a3bd7362aebf;p=deliverable%2Flinux.git tun: allow setting ethernet addresss while running This is a pure software device, and ok with live address change. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 14a04543cd91..2ac2164a1e39 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);