Skip to contentSkip to conversation

New: bridge always takes the mac i don't want

Bugme-new Andrew Morton 1 participant 1 message Feb 4, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Thu, 3 Feb 2005 16:59:05 -0800
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4158] New: bridge always takes the mac i don't want

http://bugme.osdl.org/show_bug.cgi?id=4158

Summary: bridge always takes the mac i don't want
Kernel Version: 2.4+
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Problem Description:
in some situations your bridge needs to take the mac address of one certain interface. in my case the isp checks my mac address. currently it is not possible to choose which mac the bridge takes.
i changed the code somewhat to make it possible to choose the mac of the bridge by changing the order in which you add interfaces to the bridge. please consider changing this in the kernel.

code: net/bridge/br_stp_if.c:156
if (addr == br_mac_zero ||

      memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0)
    addr = p->dev->dev_addr;

please change it to:
if (addr == br_mac_zero)

    addr = p->dev->dev_addr;

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.