diff options
author | ps <ps@FreeBSD.org> | 2000-08-11 05:31:59 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2000-08-11 05:31:59 +0000 |
commit | 66b0647d69f424543fdb3a9df76d286e3380ac5f (patch) | |
tree | 08f7bb6d8c37d9139d78abe1fccbcc08626f3a38 /sys/boot/i386/libi386/pxe.c | |
parent | b69f792522fb5207c59f95c0c1044102492e5102 (diff) | |
download | FreeBSD-src-66b0647d69f424543fdb3a9df76d286e3380ac5f.zip FreeBSD-src-66b0647d69f424543fdb3a9df76d286e3380ac5f.tar.gz |
Pass along the interesting variables we were given from DHCP so we
can utilize them in the kernel and with kenv.
Diffstat (limited to 'sys/boot/i386/libi386/pxe.c')
-rw-r--r-- | sys/boot/i386/libi386/pxe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c index 471bd6d..fa3a4f2 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++; |