projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c5fa3
)
tun: allow setting ethernet addresss while running
author
stephen hemminger
<shemminger@vyatta.com>
Mon, 10 Dec 2012 15:16:00 +0000
(15:16 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 11 Dec 2012 17:49:53 +0000
(12:49 -0500)
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>
drivers/net/tun.c
patch
|
blob
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index 14a04543cd91fef0ab1b5b3516caa7cc6230f4cf..2ac2164a1e39bd70b0a046ee6dc7df05b76e1045 100644
(file)
--- 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);