char path[SYSFS_PATH_MAX];
char line[100];
- if ((master = iface->upper) == NULL)
+ if ((master = iface->upper) == NULL || master->type != IFACE_BOND_T)
return;
log_debug("interfaces", "get MAC address for %s",
"interface %s is a bond",
iface->name);
iface->type |= IFACE_BOND_T;
- iflinux_get_permanent_mac(cfg,
- interfaces, iface);
}
}
}
continue;
}
+ /* Get the real MAC address (for example, if the interface is enslaved) */
+ iflinux_get_permanent_mac(cfg, interfaces, iface);
+
log_debug("interfaces",
"%s is a physical interface",
iface->name);