Here is a proposed patch that allows one to control the bridge MAC address. 
Instead of the bridge choosing the MAC address with the least numerical 
value, this patch chooses the MAC address from the last slave interface that 
was added to the bridge. This is important in an ISP environment where MAC 
addresses are carefully filtered and controlled. For example, the DHCP server 
on an interior ISP network has a host entry for each MAC address that it 
recognizes. The default is to deny allocation of an address. This helps 
ensure that unauthorized machines cannot gain access, even if they have 
physical access to the network (as is the case with wireless).

rtg

-- 
Tim Gardner - [EMAIL PROTECTED] 406-443-5357
TriplePoint, Inc. - http://www.tpi.com
PGP: http://www.tpi.com/PGP/Tim.txt 
diff -r -u --new-file linux-2.4.17-rmk2-isc/net/bridge/br_stp_if.c 
/usr3/rtg/tmp/linux-2.4.17-rmk2-isc-br/linux-2.4.17-rmk2-isc/net/bridge/br_stp_if.c
--- linux-2.4.17-rmk2-isc/net/bridge/br_stp_if.c        Mon Jan 28 11:56:31 2002
+++ 
+/usr3/rtg/tmp/linux-2.4.17-rmk2-isc-br/linux-2.4.17-rmk2-isc/net/bridge/br_stp_if.c 
+Mon Jan 28 12:04:49 2002
@@ -163,7 +163,7 @@
        p = br->port_list;
        while (p != NULL) {
                if (addr == br_mac_zero ||
-                   memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0)
+                   (!p->next))
                        addr = p->dev->dev_addr;
 
                p = p->next;

Reply via email to