Skip to content

Commit

Permalink
tun: allow setting ethernet addresss while running
Browse files Browse the repository at this point in the history
This is a pure software device, and ok with live address change.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
stephen hemminger authored and davem330 committed Dec 11, 2012
1 parent 89c5fa3 commit a676847
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/tun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a676847

Please sign in to comment.