xapi-project / xcp-networkd

The XCP networking daemon
Other
14 stars 42 forks source link

CA-120846: fix get_mac for bonded interfaces #27

Closed robhoes closed 10 years ago

robhoes commented 10 years ago

When an interface is bonded by the Linux bonding driver, the driver may change the MAC address if the interface to that of the bond. The only place where you can find the "real" MAC address of a bond slave seems to be /proc/net/bonding.

Signed-off-by: Rob Hoes rob.hoes@citrix.com

robhoes commented 10 years ago

Test build failed - perhaps the spec file change was not yet picked up?

robhoes commented 10 years ago

@xen-git re-test this please

thomassa commented 10 years ago

The code seems fine to me now that I know how the bond files under /proc are expected to look.

The commit-message has a typo: "if" should be "of" in "...the MAC address if the interface..."

robhoes commented 10 years ago

Thanks @thomassa, I have fixed the commit message.