From f6940c1842e7a706239b0417f5b37852d92f6d3b Mon Sep 17 00:00:00 2001 From: Paul Saab Date: Fri, 11 Aug 2000 05:31:59 +0000 Subject: [PATCH] Pass along the interesting variables we were given from DHCP so we can utilize them in the kernel and with kenv. --- sys/boot/i386/libi386/pxe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index 471bd6d1b684..fa3a4f229fc3 100644 --- a/sys/boot/i386/libi386/pxe.c +++ b/sys/boot/i386/libi386/pxe.c @@ -293,6 +293,12 @@ pxe_open(struct open_file *f, ...) printf("pxe_open: server addr: %s\n", inet_ntoa(rootip)); printf("pxe_open: server path: %s\n", rootpath); printf("pxe_open: gateway ip: %s\n", inet_ntoa(gateip)); + + setenv("boot.pxe.server_addr", inet_ntoa(rootip), 1); + setenv("boot.pxe.rootpath", rootpath, 1); + setenv("boot.pxe.gateway", inet_ntoa(gateip), 1); + setenv("boot.pxe.myip", inet_ntoa(myip), 1); + setenv("boot.pxe.netmask", intoa(netmask), 1); } } pxe_opens++;