summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
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.h
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.h')
-rw-r--r--src/network/networkd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h
index 22cc51d933..691d603020 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -383,7 +383,7 @@ int config_parse_label(const char *unit, const char *filename, unsigned line,
int ltype, const char *rvalue, void *data, void *userdata);
/* Forwarding database table. */
-int fdb_entry_configure(sd_rtnl *const rtnl, FdbEntry *const fdb_entry, const int ifindex);
+int fdb_entry_configure(Link *link, FdbEntry *const fdb_entry);
void fdb_entry_free(FdbEntry *fdb_entry);
int fdb_entry_new_static(Network *const network, const unsigned section, FdbEntry **ret);