summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-10 20:40:41 +0100
committerTom Gundersen <teg@jklm.no>2015-02-10 22:30:35 +0100
commitea6ec096db5f9f3562b9bbf438da7fe21411c74d (patch)
tree2cb4cb42f485faef82570b0143894759c0065d69 /src/network/networkd-link.c
parent9198e12ca32db7812b2a79b5922233ec80890306 (diff)
networkd: fdb - refactor a bit
Pass around Link objcets rather than FdbEntry objects. The link objects have an up-to-date ifname we can use for logging. match_name sholud _never_ be used for anything except matching. Firstly, it may be unset (usually is), and secondly it may not be up-to-date.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 0b1cac1055..3f1539454f 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -733,7 +733,7 @@ static int link_set_bridge_fdb(const Link *const link) {
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;