From ff6c12f0ceb79027381fcaa32db851072f2e8387 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 11 Dec 2001 14:48:26 +0000 Subject: support "filename" in DHCP answers and give this to stage2 as --kickstart parameter --- mdk-stage1/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mdk-stage1/dhcp.c') diff --git a/mdk-stage1/dhcp.c b/mdk-stage1/dhcp.c index 44877fd8a..ef7bd6a29 100644 --- a/mdk-stage1/dhcp.c +++ b/mdk-stage1/dhcp.c @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -207,6 +208,9 @@ static void parse_reply(struct bootp_request * breq, struct interface_info * int unsigned char * chptr; unsigned char option, length; + if (breq->bootfile && strlen(breq->bootfile) > 0) + stage2_kickstart = strdup(breq->bootfile); + memcpy(&intf->ip, &breq->yiaddr, 4); chptr = breq->vendor; -- cgit v1.2.1