From bd4cda0da2a17b39656b06e9df365002585458e0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Jul 1999 15:49:45 +0000 Subject: Patch from Eric Norum : I changed the TFTP test program and TFTP driver to reflect the changes in the way paths are passed to the TFTP driver. The TFTP driver now needs a proper `dotted-decimal' hostname as the second component of the path name. --- tftpTest/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tftpTest/init.c b/tftpTest/init.c index 27d0a5c..821e247 100644 --- a/tftpTest/init.c +++ b/tftpTest/init.c @@ -42,6 +42,8 @@ rtems_task Init (rtems_task_argument argument); #include #include +#include +#include #include "../networkconfig.h" /* @@ -56,7 +58,7 @@ Init (rtems_task_argument ignored) rtems_bsdnet_initialize_tftp_filesystem (); #if (defined (RTEMS_USE_BOOTP)) - hostname = NULL; + hostname = inet_ntoa (rtems_bsdnet_bootp_server_address); filename = rtems_bsdnet_bootp_boot_file_name; #else hostname = RTEMS_TFTP_TEST_HOST_NAME; -- cgit v1.2.3