Commit 2bfb2a77 authored by Robert Ricci's avatar Robert Ricci

Make it possible to pass in DEFAULT_PATH (for fallback for unknown

nodes) from outside, rather than defining it in the .c file.

Change the DEFAULT_PATH to freebsd.newnode . (It's harmless for a
'known' node to boot this by accident.)
parent 73ad3fb7
......@@ -38,7 +38,8 @@ INCS = -I/usr/local/include
CFLAGS += $(INCS) $(DBFLAG) -DSOLARIS -DHAVE_SOCKADDR_SA_LEN -DUSE_RECVMSG \
-DCONFPATH='"$(INSTALL_ETCDIR)/"' -DTBDBNAME='"$(TBDBNAME)"' \
-DFALLBACK_HOST='"$(BOSSNODE)"' -DBOSSNODE='"$(BOSSNODE)"'
-DFALLBACK_HOST='"$(BOSSNODE)"' -DBOSSNODE='"$(BOSSNODE)"' \
-DDEFAULT_PATH='"/tftpboot/pxeboot.newnode"'
ifeq ($(EVENTSYS),1)
CFLAGS += -DEVENTSYS -I$(TESTBED_SRCDIR)/event/lib \
......
......@@ -261,10 +261,14 @@ int ec_check(uint addr) {
*/
#ifdef FALLBACK_HOST
#define DEFAULT_HOST FALLBACK_HOST
#ifndef DEFAULT_PATH
#define DEFAULT_PATH "/tftpboot/pxeboot"
struct in_addr default_sip;
#endif
struct in_addr default_sip;
#endif /* FALLBACK_HOST */
int gettag(uchar *p, uchar tag, uchar *data, uchar *pend) {
uchar t;
t=*p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment