[BRIDGE]: allow setting hardware address of bridge pseudo-dev
Some people are using bridging to hide multiple machines from an ISP that restricts by MAC address. So in that case allow the bridge mac address to be set to any of the existing interfaces. I don't want to allow any arbitrary value and confuse STP. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fbe9cc4a87
commit
4505a3ef72
@@ -120,8 +120,7 @@ void br_stp_disable_port(struct net_bridge_port *p)
|
||||
}
|
||||
|
||||
/* called under bridge lock */
|
||||
static void br_stp_change_bridge_id(struct net_bridge *br,
|
||||
const unsigned char *addr)
|
||||
void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr)
|
||||
{
|
||||
unsigned char oldaddr[6];
|
||||
struct net_bridge_port *p;
|
||||
|
Reference in New Issue
Block a user