summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-19 14:24:57 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 14:48:01 +1000
commit19dab336ae13f0476bfbf0db34f1329a802eeb8e (patch)
tree8af60e243d1306a909ec46f46fd9887c6641a8d6 /discover/device-handler.h
parent5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161 (diff)
downloadtalos-petitboot-19dab336ae13f0476bfbf0db34f1329a802eeb8e.tar.gz
talos-petitboot-19dab336ae13f0476bfbf0db34f1329a802eeb8e.zip
discover: Add configuration events & DHCP handler
This change adds a new event type, EVENT_ACTION_CONF. These events supply a new configuration URL that petitiboot should download and parse. With this in place, we can receive DHCP configuration events. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index ad9f50a..f4c911e 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -14,6 +14,10 @@ struct device;
enum conf_method {
CONF_METHOD_LOCAL_FILE, /* discover by looking at local files on this
block device */
+
+ CONF_METHOD_DHCP, /* configuration from a DHCP response */
+
+ CONF_METHOD_UNKNOWN = -1,
};
struct discover_device {
@@ -48,6 +52,7 @@ struct discover_context {
struct event *event;
struct discover_device *device;
struct list boot_options;
+ struct pb_url *conf_url;
enum conf_method method;
};
OpenPOWER on IntegriCloud