summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-12 15:49:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-12 15:49:45 +0000
commitbd4cda0da2a17b39656b06e9df365002585458e0 (patch)
tree799a623a897931fb21422cbe3b62d8a49864ac99
parent45c129b800598ed084f9fe91ee988345a51727ec (diff)
Patch from Eric Norum <eric@cls.usask.ca>:
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.
-rw-r--r--tftpTest/init.c4
1 files changed, 3 insertions, 1 deletions
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 <stdio.h>
#include <rtems/rtems_bsdnet.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#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;