summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-10-01 21:14:06 +0200
committerTom Gundersen <teg@jklm.no>2015-10-30 12:32:49 +0100
commitc4a03a5669af8abd752bff9084c29683ae78e11e (patch)
treed7437b9285d09c000161d7ad0f76cddd6f9ea7c1 /src/network/networkd-network.c
parentc1eb9872f6d21e04c361a44987f36451e80ac126 (diff)
networkd: link - deserialize
For now only deserialize some basic state and the applied addresses. When a link is added, try to deserialize it's state from /run. This is relevant only when networkd is restarted at runtime.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 14c201e9a5..0188cb6fe5 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -352,6 +352,10 @@ int network_get(Manager *manager, struct udev_device *device,
int network_apply(Manager *manager, Network *network, Link *link) {
int r;
+ assert(manager);
+ assert(network);
+ assert(link);
+
link->network = network;
if (network->ipv4ll_route) {