return 1;
}
-static int link_set_bridge_fdb(const Link *const link) {
+static int link_set_bridge_fdb(Link *const link) {
FdbEntry *fdb_entry;
int r = 0;
LIST_FOREACH(static_fdb_entries, fdb_entry, link->network->static_fdb_entries) {
- r = fdb_entry_configure(link->manager->rtnl, fdb_entry, link->ifindex);
+ r = fdb_entry_configure(link, fdb_entry);
if(r < 0) {
log_link_error(link, "Failed to add MAC entry to static MAC table: %s", strerror(-r));
break;
r = sd_rtnl_message_close_container(req);
if (r < 0) {
- log_link_error(link, "Could not close IFLA_AF_SPEC contaire: %s", strerror(-r));
+ log_link_error(link, "Could not close IFLA_AF_SPEC container: %s", strerror(-r));
return r;
}