summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2000-04-29 23:08:49 +0000
committerps <ps@FreeBSD.org>2000-04-29 23:08:49 +0000
commit6ebc4d68c9f7c1108d6300a29a693b4aeb9e1bd9 (patch)
tree2b8fb5d116e8be49e5d15755c9669f52d4b66ec9 /sys/boot
parentc1672ab1ede5b120876596cd10edce25d5d69adc (diff)
downloadFreeBSD-src-6ebc4d68c9f7c1108d6300a29a693b4aeb9e1bd9.zip
FreeBSD-src-6ebc4d68c9f7c1108d6300a29a693b4aeb9e1bd9.tar.gz
Fall back to /pxeroot as the location of the NFS exported directory
if we are not given one by dhcp. Remove extra includes while I am here. Reminded by: jlemon
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/pxe.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/boot/i386/libi386/pxe.c b/sys/boot/i386/libi386/pxe.c
index 7c5b655..44bb753 100644
--- a/sys/boot/i386/libi386/pxe.c
+++ b/sys/boot/i386/libi386/pxe.c
@@ -31,22 +31,16 @@
*/
#include <stand.h>
+#include <string.h>
+#include <stdarg.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/udp.h>
-#include <netinet/ip.h>
-
-#include <sys/reboot.h>
-#include <string.h>
-#include <sys/reboot.h>
-#include <arpa/tftp.h>
#include <net.h>
#include <netif.h>
-#include <stdarg.h>
-
#include <bootstrap.h>
#include "btxv86.h"
#include "pxe.h"
@@ -285,10 +279,10 @@ pxe_open(struct open_file *f, ...)
* which brought us to life and a default rootpath.
*/
bootp(pxe_sock);
- if (rootip.s_addr == 0) {
+ if (rootip.s_addr == 0)
rootip.s_addr = bootplayer.sip;
+ if (!rootpath[1])
strcpy(rootpath, PXENFSROOTPATH);
- }
for(i=0; i<FNAME_SIZE; i++)
if(rootpath[i] == ':')
OpenPOWER on IntegriCloud