#include "config.h"
#endif
-#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <string.h>
}
struct pb_url *user_event_parse_conf_url(struct discover_context *ctx,
- struct event *event)
+ struct event *event, bool *is_complete)
{
const char *conffile, *host, *bootfile;
char *p, *basedir, *url_str;
struct pb_url *url;
- conffile = event_get_param(event, "conffile");
+ conffile = event_get_param(event, "pxeconffile");
if (conffile) {
if (is_url(conffile)) {
url = pb_url_parse(ctx, conffile);
talloc_free(url_str);
}
- ctx->conf_url = url;
+ *is_complete = true;
} else {
host = parse_host_addr(event);
if (!host) {
talloc_free(url_str);
talloc_free(basedir);
+ *is_complete = false;
}
return url;