summaryrefslogtreecommitdiff
path: root/src/network/networkd.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-24 23:37:56 +0100
committerTom Gundersen <teg@jklm.no>2013-11-26 01:32:25 +0100
commit02b59d57e0c08231645120077f651151f5bb2bab (patch)
tree10549c36b26f6fda4daf7b9d11c994adfc6a88ff /src/network/networkd.c
parentc166a070553511e402de5ad216d3fb62b49bdacb (diff)
networkd: add bridge support
A bridge is specified in a .netdev file with a section [Bridge] and at least the entry Name=. A link may be joined to a bridge if the .network applied to it has a Bridge= entry giving the name of the bridge in its [Network] section. We eagerly create all bridges on startup, and links are added to bridges as soon as they both appear.
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r--src/network/networkd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c
index 9144f97dc1..1d43361201 100644
--- a/src/network/networkd.c
+++ b/src/network/networkd.c
@@ -44,6 +44,10 @@ int main(int argc, char *argv[]) {
if (r < 0)
goto out;
+ r = manager_load_config(m);
+ if (r < 0)
+ return EXIT_FAILURE;
+
r = manager_udev_listen(m);
if (r < 0)
goto out;