summaryrefslogtreecommitdiffstats
path: root/discover/pb-discover.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-30 16:25:26 +1000
committerJeremy Kerr <jk@ozlabs.org>2013-06-24 13:07:57 +0800
commitc75acc64833eb7263b340079e7ba3153ebc60aec (patch)
tree46ef66a3eec4057594cc3b688095e8cfe26512b6 /discover/pb-discover.c
parent32fe8024f5af5cd8de23c638ddad8ada67a46cd5 (diff)
downloadtalos-petitboot-c75acc64833eb7263b340079e7ba3153ebc60aec.tar.gz
talos-petitboot-c75acc64833eb7263b340079e7ba3153ebc60aec.zip
discover: Add network handling
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/pb-discover.c')
-rw-r--r--discover/pb-discover.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/pb-discover.c b/discover/pb-discover.c
index fac1c9d..986401d 100644
--- a/discover/pb-discover.c
+++ b/discover/pb-discover.c
@@ -17,6 +17,7 @@
#include "user-event.h"
#include "discover-server.h"
#include "device-handler.h"
+#include "network.h"
static void print_version(void)
{
@@ -108,6 +109,7 @@ int main(int argc, char *argv[])
{
struct device_handler *handler;
struct discover_server *server;
+ struct network *network;
struct waitset *waitset;
struct opts opts;
struct pb_udev *udev;
@@ -154,6 +156,10 @@ int main(int argc, char *argv[])
if (!server)
return EXIT_FAILURE;
+ network = network_init(server, waitset, opts.dry_run == opt_yes);
+ if (!network)
+ return EXIT_FAILURE;
+
handler = device_handler_init(server, waitset, opts.dry_run == opt_yes);
if (!handler)
return EXIT_FAILURE;
OpenPOWER on IntegriCloud