--- bootpc-0.64.orig/Makefile
+++ bootpc-0.64/Makefile
@@ -33,11 +33,11 @@
${PROG}: ${OBJS}
${CC} -o ${PROG} ${CFLAGS} ${OBJS}
- strip ${PROG}
+ #strip ${PROG}
${PROG}-static: ${OBJS}
${CC} -static -o ${PROG} ${CFLAGS} ${OBJS}
- strip ${PROG}
+ #strip ${PROG}
# Make up a distribution file from the bits we want people to see
distrib: $(CFILES) $(CHEADS) $(MISC)
--- bootpc-0.64.orig/bootpc.c
+++ bootpc-0.64/bootpc.c
@@ -331,6 +331,8 @@
unsigned char *cookie = (unsigned char *)(bootp_recv->bp_vend) ;
struct in_addr temp_addr, my_addr ;
+ temp_addr.s_addr = bootp_recv->bp_giaddr.s_addr ;
+ OutString("GATEWAY", (unsigned char *)inet_ntoa(temp_addr), -1);
temp_addr.s_addr = bootp_recv->bp_siaddr.s_addr ;
OutString("SERVER", (unsigned char *)inet_ntoa(temp_addr), -1);
my_addr.s_addr = bootp_recv->bp_yiaddr.s_addr ;
@@ -676,7 +678,7 @@
}
/* Takes an address and returns useful bits of the name after lookup,
- this was a seperate program, but it is more compact to have both
+ this was a separate program, but it is more compact to have both
together. 17/02/94 JSP */
int in2host(char *address,
--- bootpc-0.64.orig/main.c
+++ bootpc-0.64/main.c
@@ -21,7 +21,7 @@
#include "bootpc.h"
-FILE * logfile = stderr ;
+FILE * logfile;
int main(int argc,
char *argv[])
@@ -33,6 +33,8 @@
char *device, *bootfile, *server ;
int returniffail=0, printflag = BP_PRINT_OUT ;
+ logfile = stderr ;
+
/* defaults unless overridden by command line options 10/02/94 JSP */
device = "eth0" ; /* first ethernet card */
bootfile = "" ; /* No bootfile by default */