Commit:     3ae412544cde6d987e0e48778bd87bc96a5749df
Parent:     f33e1d9fa20381afa3be7e7f560c59845bfa5cec
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 16 13:35:51 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 16 13:35:51 2007 -0800

    [BRIDGE]: Assign random address.
    Assigning a valid random address to bridge device solves problems
    when bridge device is brought up before adding real device to bridge.
    When the first real device is added to the bridge, it's address
    will overide the bridges random address.
    Note: any device added to a bridge must already have a valid
    ethernet address.
     br_add_if -> br_fdb_insert -> fdb_insert -> is_valid_ether_addr
    Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/bridge/br_device.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/bridge/br_device.c b/net/bridge/br_device.c
index c07bac5..bf77873 100644
--- a/net/bridge/br_device.c
+++ b/net/bridge/br_device.c
@@ -157,8 +157,7 @@ static struct ethtool_ops br_ethtool_ops = {
 void br_dev_setup(struct net_device *dev)
-       memset(dev->dev_addr, 0, ETH_ALEN);
+       random_ether_addr(dev->dev_addr);
        dev->do_ioctl = br_dev_ioctl;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to